设置UIView的边界为圆角矩形

方法一:html 直接修改UIView的样式,使用Apple iOS SDK中提供的方法,须要导入QuartzCore.framework。spa view.layer.masksToBounds = YES; view.layer.cornerRadius = 6.0; 方法二:code 直接画一个圆角矩形。htm CGFloat radius = 20.0; CGContextRef
相关文章
相关标签/搜索