Assertion failure in -[UIView layoutSublayersOfLayer:]
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上没事。
Assertion failure in -[UIView layoutSublayersOfLayer:]的更多相关文章
- Assertion failure in UITableViewCell layoutSublayersOfLayer解决办法
		iOS6 设备在更新UITableViewCell的时候遇到了 Assertion failure in -[UITableViewCell layoutSublayersOfLayer:], /So ... 
- Assertion failure   layoutSublayersOfLayer:], /SourceCache
		现象:代码在simulator上能够正常运行但是在真机上出现 Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/ ... 
- ug-Assertion failure in [MyClass layoutSublayersOfLayer:]
		这是在iOS7上,tableview 的sectionHeaderView中报错 *** Assertion failure in -[****.****UITVSectionHeader_Team ... 
- iOS: Assertion failure on picker view
		Q:I'm getting an assertion failure while scrolling a picker view w/ zero data(zero rows). While scro ... 
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
		今天遇到了Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]这个错误,一直也没有百度,不料想却弄了一个 ... 
- Assertion failure in -[UITableView _classicHeightForRowAtIndexPath:], /SourceCache/UIKit_Sim/UIKit-3318/UITableView.m:10772
		Assertion failure in -[UITableView _classicHeightForRowAtIndexPath:], /SourceCache/UIKit_Sim/UIKit-3 ... 
- ios  AFNetworking  3.0 报错 : *** Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:],
		AFNetWorking[:] *** Assertion failure -- :::] *** Terminating app due to uncaught exception 'NSInter ... 
- *** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory
		报错提示: *** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndex ... 
- iOS Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.30.14/UITableView.m:7962
		Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Cac ... 
随机推荐
- Android 保存图片到SQLite,读出SQLite中的图片
			1.bitmap保存到SQLite 中 数据格式: db.execSQL("Create table express ( _id INTEGER PRIMARY KEY AUTOINCREM ... 
- 轻奢品牌全面崛起 Coach、UGG等纷纷抢滩新兴市场_新闻中心_赢商网
			轻奢品牌全面崛起 Coach.UGG等纷纷抢滩新兴市场_新闻中心_赢商网 轻奢品牌全面崛起 Coach.UGG等纷纷抢滩新兴市场 
- js的replace的用法;
			obj.replace("需要替换的字符串","替换后的字符串") 
- C++ *max_element函数找最大元素 *min_element函数找最小元素 STL算法(转)
			http://blog.sina.com.cn/s/blog_6f3a860501019z1f.html #include<iostream> #include<algorithm& ... 
- C++重载运算符的规则
			(1)C++不允许用户自己定义新的运算符,只能对已有的C++运算符进行重载. 例如,有人觉得BASIC中用“* *”作为幂运算符很方便,也想在C++中将“* *”定义为幂运算符,用“3* *5”表示3 ... 
- 浅谈API设计
			为什么需要了解一些API设计? 只要你编程,你就是API Designer 一个好的设计,模块之间的耦合应该也是API级别的 一个程序,如果你独立开发,那你既是API的Designer,也是API的U ... 
- .NET读取Project 2007 MPP项目文件
			Project文件读取: 方法1:Microsoft.Project.OLEDB.11.0 string strConn = "Provider=Microsoft.Project.OLED ... 
- Heritrix个性化设置抓取目标
			本文是Heritrix的使用的高级篇,针对对Heritrix已经能够运行的码农朋友们! 我们在抓取网页的时候,网页的链接中往往会包含有js.css.图片.视频等文件,第一次执行抓取任务的时候,许多农民 ... 
- [转]PB 基本语句 循环语句
			PB 基本语句一.赋值语句赋值语句用于给变量.对象属性赋值,这是应用程序中使用最频繁的语句,其语法格式为:variablename = expression_r其中:⑴variablename是变量名 ... 
- apache+mysql+php环境的手动搭建
			一.搭建Apache Http Server 官方下载地址:http://www.apachehaus.com/cgi-bin/download.plx 搭建环境:win10 64位 WIN10 64 ... 
