- 博客(4)
- 收藏
- 关注
转载 setNeedsDisplay,setNeedsLayout,layoutSubviews,drawRect的调用关系
layoutSubviews方法什么时候调用? 1、init方法不会调用 2、addSubview方法等时候会调用 3、bounds改变的时候调用 4、scrollView滚动的时候会调用scrollView的layoutSubviews方法(所以不建议在scrollView的layoutSubviews方法中做复杂逻辑) 5、旋转设备的时候调
2017-06-30 17:34:07 362
转载 监测APP线程运行时间调试器
Instruments的 Time Profiler 工具: Time Profiler帮助我们分析代码的执行时间,找出导致程序变慢的原因,告诉我们“时间都去哪儿了?”。 Time Profiler分析原理:它按照固定的时间间隔来跟踪每一个线程的堆栈信息,通过统计比较时间间隔之间的堆栈状态,来推算某个方法执行了多久,并获得一个近似值。其实从根本上来说与我们的原始分析方法异曲同工
2017-06-30 14:59:46 806
原创 Error:ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requires these orientations:
打包上传时报错: ERROR ITMS-90474: “Invalid Bundle. iPad Multitasking support requires these orientations: ‘UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLands
2017-06-28 10:53:47 1866
原创 [UILabel copyWithZone:]: unrecognized selector sent to instance
报错: [UILabel copyWithZone:]: unrecognized selector sent to instance 我的原因是Xib中一个Label拉出来了两次,有两个名字,正常也不报错但只要一运行就会崩溃,删除其中一个名字就好了。
2017-06-09 14:01:47 1893
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人