我正在尝试使用以下代码片段构建应用程序
我的接口定义是
@interface CreateMessageViewController : UIViewController
我调用按钮单击的方法是
-(IBAction) handleEvents:(id) sender
{
if ((UIButton *) sender == openContact)
{
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
[self presentModalViewController:picker animated:YES];
[picker release];
}}
现在我收到警告picker.peoplePickerDelegate = self;
说
警告:类“CreateMessageViewController”未实现“ABPeoplePickerNavigationControllerDelegate”协议
我无法删除警告。请在这方面帮助我
任何形式的帮助将不胜感激
提前致谢!!