2012-03-17 72 views
0

在我尝试使用艾哈迈德·阿卜杜勒 - 卡德尔的岗位上自动格式化电话号码,即 http://the-lost-beauty.blogspot.com/2010/01/auto-formatting-phone-number.html ,我得到:收到错误尝试使用PhoneNumberFormatter

“未知类型名‘PhoneNumberFormatter’;你意思是'NSNumberFormatter'?“

上线

PhoneNumberFormatter* phoneNumberFormatter = [[PhoneNumberFormatter alloc] init]; 

缺少什么我在这里?

+0

你有没有'#import'.h文件? – 2012-03-17 01:13:00

回答

0

您没有在您的项目中实施或导入必需的类。

This is what you're missing

+0

杜!我从来没有看到引用完整的Objective-C类对象!非常感谢。 – JJW 2012-03-17 02:19:43

相关问题