2014.12 Fragmented Knowledge points

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.