这是代码:
// Create an instance of the classID vIEwController = [[NSClassFromString(class) alloc] init];// Check the class supports the methods to set the row and sectionif ([vIEwController respondsToSelector:@selector(setCurrentID:)]) { [vIEwController setCurrentID:itemID]; } // Push the vIEw controller onto the tab bar stack [self.navigationController pushVIEwController:vIEwController animated:YES];[vIEwController release];
干杯
戴夫
解决方法 导入声明方法的标头,或者只是在实现中使用非正式协议来声明它.编译器必须知道方法的签名.@interface NSObject (MyInformalProtocol)- (voID)setCurrentID:(int)ID;@end@H_301_34@ 总结
以上是内存溢出为你收集整理的iphone – 找不到编译器警告的方法全部内容,希望文章能够帮你解决iphone – 找不到编译器警告的方法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)