Ios8corelocation's Problem-01

Source: Internet
Author: User

1 /*2 Note: IOS7 will automatically require the user to authorize your application as soon as it starts locating, but starting from IOS83 want to locate must first "oneself" "active" Request user authorization4 in iOS8, you should not only actively request authorization, but you must configure the properties in the Info.plist file to eject the authorization window .5 nslocationwheninusedescription, allowing GPS descriptions to be obtained at the front desk6 nslocationalwaysusagedescription, allows the description of GPs to be acquired in the background7          8         */9         Ten         //determine if it is iOS8 One         if([[Uidevice currentdevice].systemversion Doublevalue] >=8.0) A         { -             //This is the iOS8 system . -NSLog (@"This is iOS8"); the              -             //proactively require users to authorize our programs, authorization will automatically invoke the proxy method -[_mgr requestalwaysauthorization];//request foreground and background location authorization -              + //[_mgr requestwheninuseauthorization];//Request Foreground Location Authorization -}

Ios8corelocation's Problem-01

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.