How to get mobile number from iPhone programmatically?
I tried the code below but it's not working.
NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
Please suggest me a right way.
Thanks.
How to get mobile number from iPhone programmatically?
I tried the code below but it's not working.
NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
Please suggest me a right way.
Thanks.
You can't get the mobile number programmatically from iPhone, atleast not if jailbroken.
Please see this thread for more info.