I want to get own phone number by standard APIs from iPhone SDK? i have used some code snnipts but didn't get phone number.
NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber];
NSLog(@"Phone Number: %@", num);
and
NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Preferences/.GlobalPreferences.plist"];
NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path];
NSLog(@"dict = %@", dict);
and also i want to s app on itunes so didn't want any private method to use.
Thanks for any help