标签: iphone cocoa-touch objective-c
我最近在UIApplicationDelegate类中看到了一些如下所示的代码:
[rootViewController setDelegate:self];
在这里设置UIViewController的委托是什么意思?委托属性会触发什么类型的事件?
答案 0 :(得分:-3)
UIViewController上没有setDelegate方法,因此它没有任何意义,只会触发“不响应选择器”异常。