iPhone でバックグラウンド位置情報アプリケーションを作ってみた。
- 14. バックグラウンドで使える7
つの機能
• Fast App Switching
• Background Audio
• Background Location
• Background VoIP
• Task Compression
• Push Notification
• Local Notification
2010年10月23日土曜日
- 21. 緯度経度の取り方
- (void)locationManager:(CLLocationManager *)manager
! didUpdateToLocation:(CLLocation *)newLocation
! ! fromLocation:(CLLocation *)oldLocation{
! NSString *log = [self makeLogText:newLocation];
! [self logText:log];
}
- (void)locationManager:(CLLocationManager *)manager
didFailWithError:(NSError *)error
{
! [self logTextWithTime:[NSString
stringWithFormat:@"LocationManager Failed %@", [error
localizedDescription]]];
}
delegateで設定されたクラスの
-(void)locationManager:didUpdateToLocation:fromLocation:
か
-(void)locationManager:didFailWithError:
が呼ばれる。
2010年10月23日土曜日