Assertion failure in -[UIView layoutSublayersOfLayer:]
2024-09-16 04:25:58
Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.137/UIView.m:8803
(ios7系统)
解决方法:重写对应UIView(假如上面的UIView是UIProgressView)的 layoutSublayersOfLayer
并且调用[self layoutSubViews];
当当前UIView的子控件布局完自动约束后调用 layoutIfNeeded
例如这里的progressview 有个label
当label的约束布局完以后调用
[label layoutIfNeeded];
这种由约束布局一起的错误出现在7上8和9上没事。
最新文章
- 安卓log4k问题解决
- 年薪10w和年薪100w的人,差在哪里?
- Linux之netstat命令详解
- iOS YSMine 通用设置
- poj 1811 大数分解
- 在blade中定义一个可以被模版使用的变量
- Android微信支付SDK开发笔记
- MYSQL 体系结构图
- 34.编写2个接口:InterfaceA和InterfaceB;在接口InterfaceA中有个方法void printCapitalLetter();在接口InterfaceB中有个方法void printLowercaseLetter();然 后写一个类Print实现接口InterfaceA和InterfaceB,要求printCapitalLetter()方法 实现输出大写英文字母表的功能,
- HDU 3783 ZOJ
- ambari2.6.50 openssl 版本问题:SSLError: Failed to connect. Please check openssl library versions. Openssl error upon host registration
- 【java】接口
- odoo开发笔记 -- 日常开发注意点总结(持续补充)
- java爬虫进阶 —— ip池使用,iframe嵌套,异步访问破解
- About how fast is fast enough for a web application?
- 【python-字典】判断python字典中key是否存在的
- 24-hadoop-hiveserver2&;jdbc-正则数据导入
- sublime text 另一种对齐
- Netty简单使用
- js数组定义和方法 (包含ES5新增数组方法)