【发布时间】:2011-05-13 23:39:07
【问题描述】:
我正在试验 UIImageView 的层,特别是添加圆角。
我的问题是, 执行以下操作对性能有什么影响(如果有):
[self.imgView.layer setCornerRadius:10.0f];
[self.imgView.layer setMasksToBounds:YES];
[self.imgView.layer setBorderWidth:2.0f];
[self.imgView.layer setBorderColor:[[UIColor yellowColor] CGColor]];
事先“预渲染”图像。
谢谢
【问题讨论】:
标签: iphone uiimageview rounded-corners cglayer