【发布时间】:2011-02-07 23:48:56
【问题描述】:
我正在修改其他人的代码并尝试使用 ViewController,但它目前是一个 NSObject。所以下面我加了newDelegate
@interface myAppDelegate : NSObject <UITableviewDelegate, newDelegate>
在我的代码中,我尝试使用
调出模态视图[self presentModalViewController:newModalView animated:YES];
我收到错误消息'myAppDelegate' may not respond to '-presentModalViewController:animated:',这很公平,它是一个 NSObject。有人可以帮助我采取一种可能的方法吗?
【问题讨论】:
标签: iphone delegates modalviewcontroller nsobject