0

I have code to add a contact to iOS 6 address book. The code looks similar to the answers on this page. The problem is that all the addresses for the contact all come out in the US format.

enter image description here

If i go and create a contact in the address book manually (for country UK), here is what the format looks like.

enter image description here

Is there any thing I am missing? Any help is much appreciated.

Community
  • 1
  • 1
Just a coder
  • 15,480
  • 16
  • 85
  • 138

1 Answers1

0

Have you tried setting kABPersonAddressCountryCodeKey ?

I think you have set only kABPersonAddressCountryKey

For more about these constant read docs

Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184
  • Thanks dude. I had tried this before. But it seems i was giving it the incorrect country code value. I've now started used codes from here _> http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm thanks, works! – Just a coder Jul 03 '13 at 03:47