私はios 6でCore Locationを使用しています。これを探していましたが、適切なソリューションを見つけることができました
私の質問は次のとおりです。
私はios 6でCore Locationを使用しています。これを探していましたが、適切なソリューションを見つけることができました
私の質問は次のとおりです。
- (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
CLLocation *curPos = locationManager.location;
latitude = [[NSNumber numberWithDouble:curPos.coordinate.latitude] floatValue];
longitude = [[NSNumber numberWithDouble:curPos.coordinate.longitude] floatValue];
if (ABS( latitude - XlocationLAT)>0.1 ||ABS( longitude - XlocationLON)>0.1 ) {
NSLog(@"He is out");
}
}