1. IOS7 after the app to jump to the App Store page can only use the following link, where "xxxxxxxxx" replaces the app ID that was obtained when itunes Connect was generated for this app
1 [[uiapplication sharedapplication] Openurl:[nsurl urlwithstring:@ "itms-apps:// Itunes.apple.com/app/idxxxxxxxxx"];
2. Import the new features of the framework, but need to be compatible with the low system version, to change the required to optional, but at present may be in the iphone 5s simulator will still be error, direct disregard, pro-test machine available, and IPhone5 Simulator does not error.
3. Under Arc, you do not need to call [super Dealloc] manually, but this method is actually called implicitly by the quilt class.
4. Bringsubviewtofront: The method should be called after a piece of view has been added to complete. Otherwise, the view added after this method call will still overwrite it.
5. After iOS8, in the viewdidload can take the correct self.view.frame, but note a situation: in the vertical screen pull down today extension, push up, and then run a horizontal screen game, the first time to pull down today extension, Viewdidload takes the frame or vertical screen (although again pull down and correct). So in order to avoid all kinds of pit daddy situation and compatible with the lower version, or honestly put the set frame in viewwilllayoutsubviews and Viewwillappear.
6. Using git accidentally submitted unwanted, you can use the git rm--cached command to delete, as to the specific file path, lazy typing can right-click "Show Package Content" to find. If it's a git that's shared by several people, it's recommended that everyone put the code in the first place and then check out after the deletion, otherwise it's easy to report an error.
7. IOS8 can be used later
1 [[uiapplication sharedapplication] Openurl:[nsurl urlwithstring:uiapplicationopensettingsurlstring]];
Jump to the page in the Settings app, if the app has notifications, request locations, contacts, and so on.
After the beginning of the month to build a draft, and then continue to update the month, the end of writing at the end can not remember Ah, the total feeling there are many missed it ...
2014.12 Fragmented Knowledge points