2012-03-17 71 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