Iphone 如何使用MKPlacemark获取门牌号

Iphone 如何使用MKPlacemark获取门牌号,iphone,ios,xcode,geolocation,mkreversegeocoder,Iphone,Ios,Xcode,Geolocation,Mkreversegeocoder,通过将此代码应用于MKReversegeocoder NSString* city = [placemark.addressDictionary valueForKey:@"City"]; NSString* street = [placemark.addressDictionary valueForKey:@"Street"]; 现在,我正在尝试获取街道号码,是否可能?我想您要查找的是MKPlacemark的次干道属性。请注意,在iOS 5.0+中,子通道未在MKPlacemark上声明。

通过将此代码应用于
MKReversegeocoder

NSString* city = [placemark.addressDictionary valueForKey:@"City"];
NSString* street = [placemark.addressDictionary valueForKey:@"Street"]; 

现在,我正在尝试获取街道号码,是否可能?

我想您要查找的是
MKPlacemark
次干道属性。请注意,在iOS 5.0+中,
子通道
未在
MKPlacemark
上声明。它现在继承了新的超类,
CLPlacemark

您能详细说明您的答案并添加一点关于您提供的解决方案的描述吗?
self.userCoord = [[CLLocation alloc] initWithLatitude:geoPoint.latitude longitude:geoPoint.longitude];

        CLGeocoder * geoCoder = [[CLGeocoder alloc] init];
        [geoCoder reverseGeocodeLocation:self.userCoord  completionHandler:^(NSArray *placemarks, NSError *error)
        {
            if (error == nil && [placemarks count] > 0)
            {
              CLPlacemark *placemark = [placemarks lastObject];
              self.city.text = placemark.locality;
              self.street.text = placemark.thoroughfare;
              self.house.text = place mark.subThoroughfare;
            }
        }
// address dictionary properties
@property (nonatomic, readonly, copy) NSString *name; // eg. Apple Inc.
@property (nonatomic, readonly, copy) NSString *thoroughfare; // street address, eg. 1 Infinite Loop
@property (nonatomic, readonly, copy) NSString *subThoroughfare; // eg. 1
@property (nonatomic, readonly, copy) NSString *locality; // city, eg. Cupertino
@property (nonatomic, readonly, copy) NSString *subLocality; // neighborhood, common name, eg. Mission District
@property (nonatomic, readonly, copy) NSString *administrativeArea; // state, eg. CA
@property (nonatomic, readonly, copy) NSString *subAdministrativeArea; // county, eg. Santa Clara
@property (nonatomic, readonly, copy) NSString *postalCode; // zip code, eg. 95014
@property (nonatomic, readonly, copy) NSString *ISOcountryCode; // eg. US
@property (nonatomic, readonly, copy) NSString *country; // eg. United States
@property (nonatomic, readonly, copy) NSString *inlandWater; // eg. Lake Tahoe
@property (nonatomic, readonly, copy) NSString *ocean; // eg. Pacific Ocean
@property (nonatomic, readonly, copy) NSArray *areasOfInterest; // eg. Golden Gate Park