viewController内に以下のようにインターフェースを宣言します。
@interface ABPeoplePickerNavigationController (Expose)
@property (nonatomic, assign) BOOL allowsCancel;
@property (nonatomic, assign) BOOL allowsCardEditing; @end
同じファイル内に、以下のように設定します。
ABPeoplePickerNavigationController *contactsNavController = [[ABPeoplePickerNavigationController alloc] init];
contactsNavController.tabBarItem.title = @"連絡先";
contactsNavController.allowsCancel = NO;
contactsNavController.allowsCardEditing = YES;
contactsNavController.peoplePickerDelegate=self;
…
実機でアプリをテストする際にデバッガ上に以下のようなエラーが頻発します。
原因を調べてみるとどうやら、無視して良いエラーのようですが、どうも気持ちが悪いですね。。
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).以下のサイトがApple Developer Forum内の上記エラーに関する書き込みですが、アップルの方が、無視して良いと返答したようです。(人物アイコンの右にリンゴマークがついているのがアップルの人なのかな?) 参考サイト:http://twitter.com/#!/Seasons/status/9125395651624960
graffiti on the web
この投稿へのコメント
コメントはまだありません。