![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
性能优化
文章平均质量分 60
Babystyles
这个作者很懒,什么都没留下…
展开
-
NSDateFormatter之性能优化
NSDateFormatter之性能优化NSDateFormatter在开发过程使用算是频繁的,但是过度的创建NSDateFormatter用于NSDate与NSString之间转换,会导致App卡顿(特别是Cell上使用),打开Profile工具查一下性能,你会发现这种操作占CPU比例是非常高的。据官方NSDateFormatter官方文档说法,创建NSDateFormatter代价是比较高的,如原创 2017-05-03 12:02:24 · 1200 阅读 · 0 评论 -
解决tableView cell添加阴影滑动卡顿问题,只需多两行代码
直接上代码 [cell setBackgroundColor:[UIColor whiteColor]]; [cell.layer setCornerRadius:4]; [cell.layer setShadowColor:[UIColor whiteColor]]; [cell.layer setShadowOffset:CGSizeMake(0,2)]; [cell.layer...原创 2018-03-19 10:48:55 · 2122 阅读 · 0 评论