Time of Update: 2015-09-17
標籤:#import "AppDelegate.h"@interface AppDelegate (){ NSInteger _totalTickests;}@property (nonatomic, retain) NSLock *lock;@end@implementation AppDelegate- (void)task1 { NSLog(@"當前線程:%@,是否是主線程:%d",[NSThread currentThread],[[NSThread
Time of Update: 2015-09-17
標籤:在一次筆試中搞混LayoutParams的用法,特來總結一番:LayoutParams繼承於Android.View.ViewGroup.LayoutParams.LayoutParams相當於一個Layout的資訊包,它封裝了Layout的位置、高、寬等資訊。假設在螢幕上一塊地區是由一個Layout佔領的,如果將一個View添加到一個Layout中,最好告訴Layout使用者期望的布局方式,也就是將一個認可的layoutParams傳遞進去。可以這樣去形容LayoutParams,在象棋
Time of Update: 2015-09-17
標籤:
Time of Update: 2015-09-17
標籤:錯誤資訊
Time of Update: 2015-09-17
標籤:spring 配置 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Time of Update: 2015-09-17
標籤:配置 spring transaction <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:context="http://www.springframework.org/schema/context"
Time of Update: 2015-09-17
標籤:WindowManager.LayoutParams:int TYPE_SYSTEM_ALERT Window type: system window, such as low power alert.(系統表單,例如低電量警告提示框)int TYPE_SYSTEM_OVERLAY Window type: system overlay windows, which need to be displayed on top of everything
Time of Update: 2015-09-18
標籤:NSNotificationCenter.defaultCenter().addObserver(<#observer: AnyObject#>, selector: <#Selector#>, name: <#String?#>, object: <#AnyObject?#>) NSNotificationCenter.defaultCenter().addObserver(self自己就是觀察者, selector: &
Time of Update: 2015-09-17
標籤:TranslateAnimation動畫,TranslateAnimation比較常用,比如QQ,網易新聞菜單條的動畫,就可以用TranslateAnimation實現, 通過TranslateAnimation(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta) 來定義動畫 參數說明: 代碼如下:float fromXDelta 動畫開始的點離當前View
Time of Update: 2015-09-18
標籤://// main.m// SortGroup//// Created by beyond on 14-10-26.// Copyright (c) 2014年 beyond.com All rights reserved.// 按GroupTag分組和 按Order欄位排序 enabled表示不啟用#import <Foundation/Foundation.h>int main(int argc, const char * argv[]) {
Time of Update: 2015-09-18
標籤:1 概述 分類:平鋪導航模式 標籤導航模式 樹形導航模式2 模態視圖 必須要一個單獨的模態視圖控制器 呈現 代碼方法:presentViewController:animated:completion: 故事板segue方式 關閉 dismissViewControllerAnimated:completion: 擷取navigationBar:拖拽一個
Time of Update: 2015-09-18
標籤:章節都為本人定義,無抄襲,其中英文部分內容為官方文檔摘抄以及自己總結,翻譯的不好,敬請指正App Transport Security(暫且翻譯為app傳輸安全)What is ATS?App Transport Security (ATS) enforces best practices in the secure connections between an app and its back end. ATS prevents accidental disclosure,
Time of Update: 2015-09-18
標籤:android中對json資料的解析,並在listview中現實,下面是資料{"ziparea": "410100.0", "enddate": "2015-04-03 00:00:00", "ecertarea": "\u9053\u8def\u8d27\u7269\u8fd0\u8f93\u9a7e\u9a76\u5458", "ecertstate": "\u4ece\u4e1a", "begi
Time of Update: 2015-09-18
標籤:android特效 gridview listview menu it藍豹 1.目前最火的android-image-slide-panel圖片照片牆的載入和滑動特效 http://www.itlanbao.com/code/20150908/10000/100513.html650)
Time of Update: 2015-09-17
標籤:移動端開發1. 移動端適配:http://suqing.iteye.com/blog/1982733http://www.douban.com/note/261319445/ http://www.woshipm.com/ucd/150207.html<meta name="screen-orientation" content="portrait"><!-- 強制豎屏 --><meta name="x5-orientation"
Time of Update: 2015-09-18
標籤:#import <Foundation/Foundation.h>int main(int argc, const char * argv[]) {// 一: copy 與 retain 的區別// 誰才有引用計數的概念:// 1. 堆區空間才有引用計數概念.// 2. 堆區的對象才會有引用計數. //%ld: - 1 %lu:18446744073709551615 //retain:始終是淺拷貝。引用計數每次加一。
Time of Update: 2015-09-18
標籤: 在之前有一篇學習筆記中,記載了一篇如何在OC中實現單例的文章:《IOS學習筆記4—Objective C—建立單例》自蘋果引入了Grand Central Dispatch (GCD)(Mac OS 10.6和iOS4.0)後,建立單例又有了新的方法,那就是使用dispatch_once函數,當然,隨著演化的進行,還會有更多的更好的方法出現。今天就來簡要介紹下如何利用dispatch_once建立單例。
Time of Update: 2015-09-17
標籤:測試檢查點:1、在沒有內容的列表頁停留長一點時間,會出現app停止啟動並執行狀況。2、app後台切換到前台。 可能出現的原因:1、應用可能用到讀取簡訊或者記憶卡的許可權,再者就是null
Time of Update: 2015-09-17
標籤:1.activity_main.xml檔案布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@
Time of Update: 2015-09-17
標籤:使用UISearchController 配合UITableView實現搜尋功能 1 #import "ViewController12.h" 2 3 @interface ViewController12 () <UITableViewDataSource , UITableViewDelegate , UISearchResultsUpdating> 4 5 @end 6 7 @implementation ViewController12 8 {