有时我有一个实现了几个协议的接口,XCode会警告我我的实现是不完整的。
有没有一种简单的方法来确定哪些方法是“必需的”但已实现的(而不必将协议头文件中所有非可选方法的虚拟实现放入其中)?
例如,我在这个接口上有一个警告,但我不想深入研究所有的协议。显然,XCode知道有些人失踪了,为什么它不能直接说出他们是谁!
@interface KTThumbsViewController : UIViewController <KTThumbsViewDataSource, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIAlertViewDelegate>
XCode 4
https://stackoverflow.com/questions/8541876
复制相似问题