UIView top 边的阴影

     self.bottomBarView.layer.shadowColor = UIColorFromRGB(0x282D3B).CGColor;

     self.bottomBarView.layer.shadowOffset = CGSizeMake(0.0f, -2.0f); //[水平偏移, 垂直偏移]


     self.bottomBarView.layer.shadowOpacity = 0.08f; // 0.0 ~ 1.0 的值


     self.bottomBarView.layer.shadowRadius = 10.0f; // 阴影发散的程度



猜你喜欢

转载自blog.csdn.net/bravegogo/article/details/80135098