1、 iphone 获取地址的详细信息首页完成改版,来提意见iphone 获取地址的详细信息- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate if (self = super init) / Custom initializationreverseGeocoder = MKReverseGeocoder alloc initWithCoordinate:coordinate;reverseGeocoder.delegate = self;reverseGeocoder start;/return self;#pragma mar
2、k MKReverseGeocoderDelegate- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)errorNSString *errorMessage = error localizedDescription;UIAlertView *alertView = UIAlertView alloc initWithTitle:“获取详细信息失败“message:errorMessagedelegate:nilcancelButtonTitle:“OK“otherButtonTi
3、tles:nil;alertView show;alertView release;- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemarkNSLog(“%“,placemark.locality);/=Street = 科韵路 18 号Thoroughfare = 科韵路SubThoroughfare = 18 号City = 广州市SubLocality = 天河区State = 广东省SubAdministrativeArea = (null)ZIP =
4、(null)Country = 中国City = “广州市“;Country = “中国“;CountryCode = CN;FormattedAddressLines = (“中国“,“广东省广州市天河区“,“科韵路 18 号“);State = “广东省 “;Street = “科韵路 18 号“;SubLocality = “天河区“;SubThoroughfare = “18 号“;Thoroughfare = “科韵路“;MKPlacemark:property (nonatomic, readonly) NSDictionary *addressDictionary; /地址字典p
5、roperty (nonatomic, readonly) NSString *thoroughfare; /街道名“科韵路”property (nonatomic, readonly) NSString *subThoroughfare; / 门牌号“18 号”property (nonatomic, readonly) NSString *locality; /城市“广州市”property (nonatomic, readonly) NSString *subLocality; /区县 “天河区”property (nonatomic, readonly) NSString *administrativeArea; /身份“广东省”property (nonatomic, readonly) NSString *subAdministrativeArea; /没获取到,不知道是什么东东property (nonatomic, readonly) NSString *postalCode; /邮政编码不知道是什么原因,这里没获取到property (nonatomic, readonly) NSString *country; /国家“中国”property (nonatomic, readonly) NSString *countryCode; /国家代码“CN ”