0
我想建立一個應用程序使用下面的代碼設置代理在收到警告網頁摘要在的ABPeoplePickerNavigationController
我的接口定義是
@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;
說
warning: class 'CreateMessageViewController' does not implement the 'ABPeoplePickerNavigationControllerDelegate' protocol
我無法刪除該警告。請幫我在這方面
任何形式的幫助將事先得到高度讚賞
謝謝!
我得到一個錯誤「錯誤:預期標識符或‘(’前‘’令牌」修改@interface定義時,你的建議... ..請你糾正錯誤.....謝謝 – devsri 2011-02-14 13:14:37