標籤:Capturing ‘self‘ strongly in this block is likely to lead to a retain cycle__block ViewController *controller = self;[_tableView setPullToRefreshHandler:^{[controller dataDidRefresh:nil];}]; _block 的標記告訴編譯器,這個變數在 block 裡面需要做特殊處理。 一般來說,在
標籤:1.去掉邊框 EditText的background屬性設定為@null就搞定了:android:background="@null"style屬性倒是可加可不加附原文:@SlumberMachine, that‘s a great observation! But, it seems that there is more to making a TextView editable than just setting android:editable="true". It
標籤://NSData遵循NSCopying NSCoding協議,它提供物件導向的數組儲存為位元組 //適用與讀寫檔案,而讀寫檔案的時候需要一個緩衝區,而NSDate就提供了這麼一個緩衝區 //定義一個char類型的字串 const char * string = "Hi there ,this is a C string";
標籤:Phone/iPad開發模擬器(Simulator)截屏Command+Shift+3Capture entire screen and save as a file截取整個螢幕,儲存png檔案到案頭Command+Control+Shift+3Capture entire screen and copy to the clipboard截取整個螢幕,儲存到剪下板Command+Shift+4Capture dragged area and save as a
標籤:http://developer.android.com/guide/topics/resources/runtime-changes.html Retaining an Object During a Configuration ChangeIf restarting your activity requires that you recover large sets of data, re-establish a network connection, or perform