2

I am using the below code in my application which works perfectly in iPhoneOS 3.1.3 but not working in iOS 4.0. Any body affected by using this.

NSString *currentPhoneNumber = [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
venkat
  • 131
  • 1
  • 12

1 Answers1

1

It appears that the SBFormattedPhoneNumber key/value data has been removed from the NSUserDefaults object as of 4.0. No device number retrieval love; can't really say that the writing wasn't on the wall based upon Dylan's response to this thread.

Community
  • 1
  • 1
jstevenco
  • 2,913
  • 2
  • 25
  • 36
  • Many Thanks... i referred many sites. it's refused by Apple to get the users number by using SBFormattedPhoneNumber. And also the function not get the sim number directly instead by user enter for any itunes activation etc.., Regards venkat – venkat Jul 02 '10 at 05:19