Identifying the country code using mobile carrier in iPhone programmatically?
Is there any way to get the country code from mobile network. Can we get the country name of the SIM present in the Device through code? Please Help me out in this with some working code. I checked CoreTelephony Framework but ddnt get the success. Giuseppe Mosca EDIT: With Xcode 6, simply add this line, even linking the framework to the project is done automatically: @import CoreTelephony; original: Add CoreTelephony.framework to your project. inside your class add this two lines: #import <CoreTelephony/CTCarrier.h> #import <CoreTelephony/CTTelephonyNetworkInfo.h> this is the code: