map - get the current location in ios8 -
I am using the code to get the user's current location, its work is with ios7 but ios7 It is my code, please tell me where it is wrong:
{// Start Location Manager mLocationManager = [[CLLocationManager alloc] init]; [Delegate MLocationManager: self]; // We actually get the current location only once, the next line is almost pointless // [mLocationManager setDistributionFilter: 100.0F]; // 100m / / [mLocationManager SetCidid Actuci: KCL LaunchexCound HundredMeters]; // 100 meters [mLocationManager setDiscid ActiCouci: KCL LaunchAquaresArest]; // 100m}
To get the current location, work it in ios8 for me Is doing
_locationManager = [[CLLocationManager alloc] init]; // Manager_pace to start position Manager .delegate = self; // We set the location manager representative for our own location _locationManager.desiredAccuracy = kCLLocationAccuracyBest; [_locationManager startUpdatingLocation]; // Adding this line to update location
Comments
Post a Comment