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上没事。

最新文章

  1. 安卓log4k问题解决
  2. 年薪10w和年薪100w的人,差在哪里?
  3. Linux之netstat命令详解
  4. iOS YSMine 通用设置
  5. poj 1811 大数分解
  6. 在blade中定义一个可以被模版使用的变量
  7. Android微信支付SDK开发笔记
  8. MYSQL 体系结构图
  9. 34.编写2个接口:InterfaceA和InterfaceB;在接口InterfaceA中有个方法void printCapitalLetter();在接口InterfaceB中有个方法void printLowercaseLetter();然 后写一个类Print实现接口InterfaceA和InterfaceB,要求printCapitalLetter()方法 实现输出大写英文字母表的功能,
  10. HDU 3783 ZOJ
  11. ambari2.6.50 openssl 版本问题:SSLError: Failed to connect. Please check openssl library versions. Openssl error upon host registration
  12. 【java】接口
  13. odoo开发笔记 -- 日常开发注意点总结(持续补充)
  14. java爬虫进阶 —— ip池使用,iframe嵌套,异步访问破解
  15. About how fast is fast enough for a web application?
  16. 【python-字典】判断python字典中key是否存在的
  17. 24-hadoop-hiveserver2&jdbc-正则数据导入
  18. sublime text 另一种对齐
  19. Netty简单使用
  20. js数组定义和方法 (包含ES5新增数组方法)

热门文章

  1. 第五章 Spring3.0 、Hibernate3.3与Struts2的整合 基于Annotation
  2. vagrant打造自己的开发环境
  3. VM 映像 PowerShell 教学系列博客文章
  4. centos6.5vpn搭建
  5. nodejs运用passport和passport-local分离本地登录
  6. 10要点解决IE6兼容性问题
  7. angular的那些事
  8. 在WHERE子句中引用取别名的列
  9. LDAP基础
  10. CKEditor + CKFinder 实现编辑上传图片配置 (二)