2011-12-23 14 views

答えて

4

簡単な答えはイエスです:唯一の円形領域( "フェンス")は、現在サポートされている

CLRegion *region = your geofence; 
CLLocationCoordinate2D myLocation = CLLocationCoordinate2DMake(38.9, -77.04); 
if ([region containsCoordinate:myLocation]) { 
    NSLog(@"You're soaking in it."); 
} 

注意。 Location Awareness Programming GuideCLRegion Class Referenceを参照してください。

+0

私はcontainsCoordinateが廃止され、ほとんどの構文が変更されたと思います。 –

関連する問題