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