Date: 2014-10-10
Today in the development of the discovery of a iOS8 location problem, after the operation, do not call to the delegate method after the location, and then I looked at the mobile phone on the application of the location of the interface, found that my app's access to the user's geographical location is empty, and then checked the relevant information, The following solutions are available:
1. In Appdelegate:
Cllocationmanager *locationmanager;
[UIApplication sharedapplication].idletimerdisabled = TRUE; Locationmanager = [[Cllocationmanager alloc] init]; [Locationmanager requestalwaysauthorization]; Nslocationalwaysusagedescription [Locationmanager requestwheninuseauthorization]; Nslocationwheninusedescription locationmanager.delegate = self;
2. Add in Info.plist:
Nslocationwheninusedescription, allowing GPS descriptions to be obtained at the front desk
Nslocationalwaysusagedescription, allows the description of GPs to be acquired in the background
Such as:
After adding the above content will be able to locate services, Baidu Map and the gold map is also such a problem.
Recommended article: http://blog.csdn.net/yongyinmg/article/details/39521523
IOS8 Location Failure problem