1. shadowPath : 设置 CALayer 背景(shodow)的位置
 
2. shadowOffset : shadow 在 X 和 Y 轴 上延伸的方向,即 shadow 的大小
 
3. shadowOpacity : shadow 的透明效果
 
4. shadowRadius : shadow 的渐变距离,从外围开始,往里渐变 shadowRadius 距离
 
5. masksToBounds : 很重要的属性,可以用此属性来防止子元素大小溢出父元素,如若防止溢出,请设为 true
 
6. borderWidth 和 boarderColor : 边框颜色和宽度,很常用
 
7. bounds : 大小,与position,anchorPoint有关
 
8. opacity : 透明效果
 
9. cornerRadius : 圆角

相关文章:

  • 2021-07-07
  • 2021-09-19
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案