xcode升级到4.4.1后 Suppress warning “Category is implementing a method which will also be implemented by
来源:互联网 发布:卡五星房卡麻将源码 编辑:程序博客网 时间:2024/06/04 18:11
xcode升级到4.4.1后 Suppress warning “Category is implementing a method which will also be implemented by its primary class”
xcode升级到4.4.1
如果一个对一个类中的函数进行重载,会报错
Suppress warning “Category is implementing a method which will also be implemented by its primary class”
解决方法是在重载函数实现前后加上下面的3行即可
===========================
http://stackoverflow.com/questions/9424004/suppress-warning-category-is-implementing-a-method-which-will-also-be-implement
Although everything bneely said is correct, it doesn’t actually answer your question of how to suppress the warning.
If you have to have this code in for some reason (in my case I have HockeyKit in my project and they override a method in a UIImage category) and you need to get your project to compile, you can use#pragma
statements to block the warning like so:
#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"// do your override#pragma clang diagnostic pop
I found the information here: http://www.cocoabuilder.com/archive/xcode/313767-disable-warning-for-override-in-category.html
- xcode升级到4.4.1后 Suppress warning “Category is implementing a method which will also be implemented by
- Suppress warning “Category is implementing a method which will also be implemented b
- Xcode警告Category is implementing a method which will also be implemented by its primary class 处理
- Xcode警告Category is implementing a method which will also be implemented by its primary class 处理
- 警告: Category is implementing a method which will also be implemented by its primary class
- iOS警告:Category is implementing a method which will also be implemented by its primary class
- category is implementing a method which will also be implemented bt its primary class
- Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
- Class PLBuildVersion is implemented in both. One of the two will be used. Which one is undefined.
- [经验]Class MediaTransCoder is implemented in both One of the two will be used. Which one is undefined
- mac idea 执行报错Class JavaLaunchHelper is implemented in both *. One of the two will be used. Which one
- warning: LF will be replaced by CRLF
- warning: LF will be replaced by CRLF
- warning: LF will be replaced by CRLF
- warning: LF will be replaced by CRLF
- iOS:Class Foo is implemented in both MyApp and OtherApp. One of the two will be used. Which one is u
- Auto property synthesis will not synthesize property 'delegate'; it will be implemented by its super
- Auto property synthesis will not synthesizeproterty;it will be implemented by its superclass, use@dy
- Ubuntu 10.10下Nginx-0.8.54安装
- 解决cp: omitting directory 提示信息
- POJ 3673 Cow Multiplication
- c语言结构体后定义*Ruler_ptr 含义
- 排序工作量
- xcode升级到4.4.1后 Suppress warning “Category is implementing a method which will also be implemented by
- 清理svn的垃圾文件.svn文件夹
- 1978到2008年间的12次暴富机遇,你抓住了几次?
- linux下U盘的挂载与退出
- 理解TCP为什么需要进行三次握手(白话)
- 伪代码
- BigDecimal 执行精确小数计算
- 对象池化技术
- SVN trunk, branches and tags