本文介绍了iOS4.0中的SBFormattedPhoneNumber问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的应用程序中使用以下代码,它在iPhoneOS 3.1.3中完美运行但在iOS 4.0中无效。受此影响的任何身体。
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"];
推荐答案
似乎SBFormattedPhoneNumber键/值数据已被显示从4.0开始从NSUserDefaults对象中删除。没有设备号检索爱;根据对。
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.
这篇关于iOS4.0中的SBFormattedPhoneNumber问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!