当我像这样使用AddressBook时:
ABAddressBook *ab = [ABAddressBook addressBook];
ABPerson *person = [[ABPerson alloc]init];
[person setValue:lastName forProperty:kABLastNameProperty];
[ab addRecord:person];
[ab save];我收到错误:
`Terminating app due to uncaught exception 'NSInvalidArgumentException',reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x1001448a0'`setValue:forProperty是做什么的
发布于 2013-10-16 18:00:51
看起来问题出在
-[__NSCFString count]setValue:forProperty设置属性的值。看起来问题可能出在您试图设置的lastName对象上。
https://stackoverflow.com/questions/19400205
复制相似问题