- positioning . Apple has modified the location authorization protocol in IOS8, which means that your original app will probably not be able to locate on iOS8. The best way to do this is to call IOS8 's location authorization API to get the user's authorization when the app is launched, so don't make any changes elsewhere.
if (osversion>=8.0) { *clloc = [[Cllocationmanager alloc] init]; [Clloc requestalwaysauthorization]; }
In addition to the above code, you also need to add two attribute nslocationalwaysusagedescription,nslocationwheninusedescription in the app's plist file. The value of these two properties can be customized or not.
- Modification of the message push API. Originally we only need to call Registerforremotenotificationtypes This method is possible, but in the IOS8 need to first configure and then register, That is, call Registerusernotificationsettings first and then call the Registerforremotenotificationtypes method.
if(osversion>=8.0){//8.0 Use this method to register push notifications laterUiusernotificationsettings *settings = [Uiusernotificationsettings settingsfortypes:uiusernotificationtypebadge| uiusernotificationtypesound|Uiusernotificationtypealert Categories:nil]; [[UIApplication sharedapplication] registerusernotificationsettings:settings]; Uiremotenotificationtype Mytypes= Uiremotenotificationtypebadge | Uiremotenotificationtypealert |Uiremotenotificationtypesound; [[UIApplication sharedapplication] registerforremotenotificationtypes:mytypes]; }Else{[[UIApplication sharedapplication] registerforremotenotificationtypes: (Uiremotenotificationtypealert| Uiremotenotificationtypesound |Uiremotenotificationtypebadge)];}
- Before IOS8, Apple allowed us to add description properties to a custom class, but it was not possible after IOS8. This can only be achieved by overriding the description get method.
Problems encountered after using XCODE6 and IOS8SDK