简体   繁体   English

UIView的圆角:CALayer或背景图片?

[英]Round corners in UIView: CALayer or background Image?

I need to make a UIView with rounded corners like this( 我需要像这样做一个圆角的UIView( 带圆角的视图 ) in tableView with a very large number of items. )在tableView中有非常多的项目。 Therefore, my question is whether the CALayer bad influence on smooth scrolling, and may be better to use for the background image for this case? 因此,我的问题是CALayer是否对平滑滚动有不良影响,对于这种情况可能更适合用于背景图像?

Thanks. 谢谢。

CALayer is fine. CALayer很好。 Transparency is bad for performance though. 透明度虽然对性能不利。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM