iphone 根据经纬度坐标取详细地址(包括国,省,市,街道)
2010-12-19 07:19:44 来源:WEB开发网核心提示:locationManager] startUpdatingLocation]; }#pragma mark -#pragma mark Location manager/** Return a location manager -- create one if necessary. */- (CLLocationMa
locationManager] startUpdatingLocation]; }#pragma mark -#pragma mark Location
manager/** Return a location manager -- create one if necessary. */-
(CLLocationManager *)locationManager { if (locationManager != nil) { return
locationManager; } locationManager = [[CLLocationManager alloc] init];
[locationManager setDesiredAccuracy:kCLLocationAccuracyNearestTenMeters];
[locationManager setDelegate:self]; return locationManager;}/** Conditionally
enable the Add button: If the location manager is generating updates, then
enable the button; If the location manager is failing, then disable the button.
*/- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation
*)oldLocation { [self.target performSelector:self.callBack withObject:@"0"];}-
(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError
*)error { [self.target performSelector:self.callBack withObject:@"1"];}
- ››iphone图片拉伸的几种方法
- ››iphone正则表达式的简单使用
- ››iPhone开发Unresolved Symbols CAKeyframeAnimati...
- ››IPhone开发-“此证书是由未知颁发机构签名”解决方...
- ››IPhone开发-整合私钥和证书,生成.p12文件
- ››iPhone应用开发-UIPickerView选取器详解
- ››iphone 获取屏幕的宽度和高度
- ››iPhone读取工程包中的二进制文件
- ››iPhone新手机 不挂YouTube APP
- ››iPhone 获取指定格式的时间和日期
- ››iPhone版PPS走进生活 观赏体验媲美PC版
- ››iPhone两种不同的应用程序:两种方法的哲学思想
更多精彩
赞助商链接