In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the Xcode6 compilation IOS8 can not locate how to do, the article introduced in great detail, has a certain reference value, interested friends must read it!
Because two new methods have been added to IOS8's location:
-(void) requestWhenInUseAuthorization _ OSX_AVAILABLE_STARTING (_ _ MAC_NA, _ _ IPHONE_8_0);-(void) requestAlwaysAuthorization _ _ OSX_AVAILABLE_STARTING (_ _ MAC_NA, _ _ IPHONE_8_0) If you need to locate in the foreground only, you need to call requestWhenInUseAuthorization before calling startUpdatingLocation. If you need to locate in the foreground and background, you need to call requestAlwaysAuthorization before calling startUpdatingLocation and add NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription fields to the plist file. The values of these two fields should be set to the following YES code reference:-(void) initLocation {self.locationManager= [[CLLocationManager alloc] init]; self.locationManager.delegate=self; self.locationManager.desiredAccuracy=kCLLocationAccuracyNearestTenMeters If (IsIOS8Later) {[self.locationManager requestAlwaysAuthorization];} [self.locationManager startUpdatingLocation];} these are all the contents of the article "what to do when Xcode6 compiles IOS8 cannot be located". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.