iphone-常用的对视图图层(layer)的操作
生活随笔
收集整理的這篇文章主要介紹了
iphone-常用的对视图图层(layer)的操作
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
(1.給圖層添加背景圖片: myView.layer.contents = (id)[UIImage imageNamed:@"view_BG.png"].CGImage; (2.將圖層的邊框設置為圓腳 myWebView.layer.cornerRadius = 8; myWebView.layer.masksToBounds = YES; (3.給圖層添加一個有色邊框 myWebView.layer.borderWidth = 5; myWebView.layer.borderColor = [[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor];
總結
以上是生活随笔為你收集整理的iphone-常用的对视图图层(layer)的操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 线程学习3——前台线程和后台线程
- 下一篇: 卡巴斯基将支持微软企业安全解决方案For