Several problems needing attention in iOS8 adaptation

Source: Internet
Author: User

in the adaptation of the IOS8 process, encountered a number of pits, through the query data to solve, and in the process also found some other need to pay attention to the place, all summed up, but also to do iOS8 suitable for the flute to pay attention to.

According to Apple's new API, there are several changes:


1. Some APIs have been discarded, including

The method used to register the push in *uiapplication is discarded and requires a new method. From the past Registerforremotenotificationtypes: Into a new UI

-(void) Registerusernotificationsettings: (usernotificationsettings *) notificationsettings;

Methods and properties that represent directions in the *uiviewcontroller class are discarded, using traits and size classes instead;

*uisearchdisplaycontroller class is replaced by Uisearchcontroller;

Methods and properties in *gamekit that use the player identifier are discarded.

The use of 2.CLLocationManager changes. To use this method in IOS8, you need to first add two keys in the Info.plist nslocationwheninuseusagedescription, Nslocationwheninuseusagedescription, As for the two keys corresponding to the value of the NSString type, you can fill in according to the requirements; second, you need to call the method using the location function before using the positioning function requestwheninuseauthorization or Requestalwaysauthorization.


The level of 3.UITableViewCell has changed. The cell hierarchy that becomes layer three in iOS7 becomes two layers again in iOS8.


4.UIActionSheet and Uialertview have been upgraded to support callbacks using block mode.

Some issues to be aware of in iOS8 adaptation

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.