IOS8 problems encountered

Source: Internet
Author: User


1. Unable to locate
Tick settings-Privacy-Location Services-your app-use the application period (always)
When you open the app, you'll see that you've ticked off the program (always) and canceled it ....


Originally iOS8 Need some method ...
If you need to locate only in the foreground, you need to call Requestwheninuseauthorization before calling Startupdatinglocation
If you need to locate in front of the background, you need to call Startupdatinglocation before calling Requestalwaysauthorization
Also add nslocationwheninuseusagedescription or nslocationalwaysusagedescription fields to the Plist file, and the value write "need to be located" on it, or it can be other, This hint text "needs to be located" will be displayed when asking the user for authorization.

    if ([[[[Uidevice Currentdevice] systemversion] floatvalue] >= 8.0) {         [_locationmanager Requestwheninuseauthorization];    }       [_locationmanager startupdatinglocation];




2, simulator keyboard does not work


IOS simulator-hardware-keyboard Cancel tick connect Hardware keyboard


3, push does not work


  if ([[[[Uidevice Currentdevice] systemversion] floatvalue] >= 8.0) {        [app registerforremotenotifications];                Uiusernotificationsettings *settings = [uiusernotificationsettings settingsfortypes:                                                Uiremotenotificationtypealert                                                | Uiremotenotificationtypebadge                                                | Uiremotenotificationtypesound Categories:nil];        [App registerusernotificationsettings:settings];            } else {        [app Registerforremotenotificationtypes:         uiremotenotificationtypealert         | Uiremotenotificationtypebadge         | Uiremotenotificationtypesound];    }

IOS8 problems encountered

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.