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];
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
下一篇:让程序感受振动
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
视图层:
视图层:Django 有视图的观点来封装逻辑负责来处理用的请求和返回响应。找到需要的直到视图通过下面的信息:URL dispatcher URL调度器一个干净,优雅的URL scheme是一个重要的细节在一个高...
django hive 正则表达式 python 字符串