I need to get address information for calculating shipping and taxes rates for purchasing items on my app. I wanna use Apple Pay, thus I receive record as ABRecordRef instance. I've tried
NSString *zip = (__bridge NSString *)(ABRecordCopyValue(address, kABPersonAddressZIPKey));
but it causes EXC_BAD_ACCESS. I'm sure there should be a way to make it work, does anyone know it?
Figured it out finally:
Resulting dictionary looks like this: