Programatically get own Phone Number in iPhone OS 4.0
Posted
by
sandy
on Stack Overflow
See other posts from Stack Overflow
or by sandy
Published on 2010-12-28T08:49:53Z
Indexed on
2010/12/28
8:54 UTC
Read the original article
Hit count: 275
I am developing an iPhone application for jail broken phones and in this application I would like to fetch user's phone number.
I have gone through the entire stackoverflow.com and found some relevant answers but all of them are obsolete and doesn't work with iOS 4.0 anymore.
The most famous solution for this problem is
NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
but as I mentioned this solution no more works with iOS 4.0
As my application is intended towards the jail broken phones and not intended the Apple app store so I am not worried about my app rejection, hence any private API will also work for me.
Also please let me know if we can fetch IMSI number from SIM using any private APIs of iPhone
© Stack Overflow or respective owner