SBFormattedPhoneNumber issue in iOS4.0
I am using the below code in my application which works perfectly in iPhoneOS 3.1.3 b开发者_StackOverflow中文版ut not working in iOS 4.0. Any body affected by using this.
NSString *currentPhoneNumber = [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
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.
精彩评论