Swift3.0 shadowColor
来源:互联网 发布:php最新面试题 编辑:程序博客网 时间:2024/06/07 14:25
self.contentView.layer.shadowColor = UIColor.blue.cgColorself.contentView.layer.shadowOffset = CGSize.init(width: 4, height: 4)self.contentView.layer.shadowOpacity = 0.8self.contentView.layer.shadowRadius = 4
我写的时候这样写,看这没有任何问题,就是不出现效果,然后仔细想想应该是没有borderWidth的问题,依稀记得之前OC犯过这个错误,结果加上之后效果马上出现了。
self.contentView.layer.borderWidth = 1 self.contentView.layer.borderColor = UIColor.white.cgColor self.contentView.layer.shadowOffset = CGSize.init(width: 4, height: 4) self.contentView.layer.shadowRadius = 4
0 0
- Swift3.0 shadowColor
- Swift3.0
- swift3.0
- Swift3.0
- swift3.0的改变
- Swift3.0学习
- Swift3.0 初识
- swift3.0 GCD
- swift3.0 gcd 变化
- swift3.0变化
- Swift3.0 - 集合 - Set
- swift3.0更新
- swift3.0 GCD
- Swift3.0 类型检查
- swift3.0 NSString
- swift3.0 关于字符串
- swift3.0 使用coredata
- swift3.0调用相册
- 链表【9-1-2】链表销毁
- 驱动接口API设计的一种方法
- 关于JavaScript中的split()方法
- 基于视觉的网页结构相似性计算
- Linux USB 驱动开发(五)—— USB驱动程序开发过程简单总结
- Swift3.0 shadowColor
- 判断链表是否有环---leetcode题目
- HDFS文件操作命令格式-注意事项
- 链表【9-1-3】 链表与数组的比较
- ssh 免密码登录
- jQuery中给文本框获得焦点和失去焦点的方法
- vs2012打开vs2013的项目
- 建造者模式
- android ---Activity生命周期