开发者

How to get my phone number from iphone

开发者 https://www.devze.com 2023-02-03 14:03 出处:网络
I want to get my phone number. with the coding in iphone is their any way or code to get my phone number.

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

精彩评论

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