UITableView cornerRadius with border performance issues on iOS

有些话、适合烂在心里 提交于 2019-12-01 17:52:54

CALayer having shouldRasterize property for this type of performance issue. Just set

self.tableView.layer.shouldRasterize = YES;

This single line saved my lot of time and work.

I just found out that cornerRadius with borderWidth sluggish tableView performance by a lot. So instead of 10.f radius I changed to 5.f and performance has increased amazingly. Still not perfect but noticeably better...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!