設置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
相關文章
相關標籤/搜索