I want to get the country code and phone number from CNContact on iOS 9. I tried many things but couldn\'t find a way. The best result I achieved is printing:
Objective-C:
[number.value valueForKey:@"countryCode"]
Swift:
number.value.valueForKey("countryCode") as? String
valueForKey is not private, and your app will not get rejected.
valueForKey