MKPlacemark postalCode property returns nil

Originator:skroob
Number:rdar://7329674 Date Originated:23-Oct-2009 01:46 AM
Status:Open Resolved:
Product:iPhone SDK Product Version:3.1.2 (7D11)
Classification:Serious Bug Reproducible:Always
 
23-Oct-2009 01:46 AM Mike Glass:
Summary: 
MKPlacemark should return the postal code of the placemark, per documentation. When executed as below, it returns nil.

Steps to Reproduce:
1. Build and launch the attached project, either on the device or the simulator.
2. Click the Get Zip Code button.
3. Check the console.

Expected Results:
In the console, you should see the following (as in the simulator):
2009-10-23 01:37:40.056 PostalCodeTest[7041:207] postalCode: 95014
2009-10-23 01:37:40.057 PostalCodeTest[7041:207] addressDictionary: {
    City = Cupertino;
    Country = "United States";
    CountryCode = US;
    FormattedAddressLines =     (
        "1 Infinite Loop",
        "Cupertino, California 95014",
        USA
    );
    State = California;
    Street = "1 Infinite Loop";
    SubAdministrativeArea = "Santa Clara";
    SubThoroughfare = 1;
    Thoroughfare = "Infinite Loop";
}

Actual Results:
In the console, you see (as in the simulator):
2009-10-23 01:37:40.056 PostalCodeTest[7041:207] postalCode: (null)
2009-10-23 01:37:40.057 PostalCodeTest[7041:207] addressDictionary: {
    City = Cupertino;
    Country = "United States";
    CountryCode = US;
    FormattedAddressLines =     (
        "1 Infinite Loop",
        "Cupertino, California 95014",
        USA
    );
    State = California;
    Street = "1 Infinite Loop";
    SubAdministrativeArea = "Santa Clara";
    SubThoroughfare = 1;
    Thoroughfare = "Infinite Loop";
}

Regression:
Occurs in the 3.0 SDK as well as 3.1 and 3.1.2.

Notes:
Sample project file is attached.


'PostalCodeTest.zip' and 'MacBook Pro.spx' were successfully uploaded

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!