Convenience initialzer missing a self call to another initializer警告
来源:互联网 发布:ios6不越狱安装软件 编辑:程序博客网 时间:2024/04/28 23:33
今天在在写一个类别方法时遇到一个这样的警告:Convenience initialzer missing a self call to another initializer
查到的是Xcode编译提醒/指定初始化器问题,可以用编译器指令来屏蔽
虽然说这个警告对程序并没有影响,但是有强迫症的程序员可能就是看着不爽啊,我就是其中的一员
其实解决的方法也很简单,看下面的两张截图就明白了
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
上面的一句代码就搞定了
其实外国的哥们也是这么写的,很无奈英文水平有限,不能为大家翻译啦
0 0
- Convenience initialzer missing a self call to another initializer警告
- Are you missing a call to unregisterReceiver()?
- Are you missing a call to unregisterReceiver()?
- swift - Designated Initializer & Convenience Initializers
- Are you missing a call to unregisterReceiver()? 解决方法
- 关于"Are you missing a call to unregisterReceiver()? "错误
- 【异常处理】Are you missing a call to unregisterReceiver()?
- opposdk---Are you missing a call to unregisterReceiver()?
- iOS Dev (48) initializer 和 convenience constructor
- Captureing ‘self’ strongly in this block is likely to lead to a retain cycle 的 警告
- To call a VO from another VO or from AM method
- Error c3876: function call missing argument list; use '' to create a pointer to member
- Failed to call designated initializer on NSManagedObject class 'ClassName'.
- has leaked IntentReceiver ...that was originally registerd here.Are you missing a call to unregister
- Activity has leaked IntentReceiver that was originally registered here. Are you missing a call to un
- Activity has leaked IntentReceiver that was originally registered here. Are you missing a call to u
- How to run an ajax call after another ajax call?
- xcode编译警告:Missing sentinel in function call
- iOS中 流媒体播放和下载 韩俊强的博客
- 属性动画详解
- Closing Channels
- GitHub如何使用
- 视频编码基础
- Convenience initialzer missing a self call to another initializer警告
- JS对于Android和IOS平台的点击响应的适配
- Android Studio 打包apk,自动追加版本号和版本名称
- C#使用SharpZipLib解压Zip单个文件到内存
- UIWebView与JavaScript(JS) 回调交互(oc与js交互)
- 基础三
- 如何搭建千万级别用户的应用系统
- Android Settings.System的使用
- BestCoder Round #68 (div.1)