简体   繁体   中英

Round corners in UIView: CALayer or background Image?

I need to make a UIView with rounded corners like this( 带圆角的视图 ) in tableView with a very large number of items. 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?

Thanks.

CALayer is fine. Transparency is bad for performance though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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