iOS开发-几个经常出现的警告

No.1

<UIVisualEffectView 0x7fe2130553e0> is being asked 
to animate its opacity. This will cause the effect to 
appear broken until opacity returns to 1. 

该警告容易在iOS 8系统中复现。其问题是系统在执行alpha渐变动画时,UIVisualEffectView创建了裁剪区域外的模糊实例,警告说,他的效果可能会被破坏,然而经过测试没有被破坏。又因为在这个问题在系统的层级,我们控制不了。所以暂时没有做处理。
详情见链接

No.2

CGContextSaveGState: invalid context 0x0. This is a serious 
error. This application, or a library it uses, is using an 
invalid context  and is thereby contributing to an overall 
degradation of system stability and reliability. 
This notice is a courtesy: please fix this problem. 
It will become a fatal error in an upcoming update.

该警告目的是说项目中某一个地方使用的上下文去绘制图形时,上下文是无效的。仔细检查项目中用drawRect方法的地方,是否有其他异常,比如我的代码是这么写之后出现了这样的警告。

8983551A-346B-40BD-89E5-F78075606F0D.png

详情见链接

No.3

**CUICatalog: Invalid asset name supplied: ** 

这个就很简单了,项目中的 [UIImage imageNamed:@""]获取到的图片为nil,就是图片名字搞错了~,如果你自己也不清楚哪里错了,简单粗暴的方法断点调试如图:

ATz38.png

详情见链接

今天先到此为止,这篇文章会一直更新下去!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容