开发者

How to get my phone number from iphone

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜