I want to get my phone number. with the coding in iphone is their any way or code to get my phone number.
I am using following code for the finding of my phone number but i am getting 1(1234)123开发者_StackOverflow中文版45 In simulator it is giving null value.
NSString *num = [[NSUserDefaults standardUserDefaults]stringForKey:@"SBFormattedPhoneNumber"];
Is their any other framework to include in my application.
Read this post - the following code snippet should help?
NSString *num = [[NSUserDefaults standardUserDefaults]
stringForKey:@”SBFormattedPhoneNumber”];
NSLog(@”Phone Number: %@”, num);
As I understand it, the developer license forbids access to the SIM number. The best you can do is get the number entered to activate iTunes.
精彩评论