要实现以下UI效果:
直接贴代码
-(UIView *)bgView{
if (!_bgView) {
_bgView = [[UIView alloc]init];
_bgView.layer.shadowColor = RGB(0, 0, 0).CGColor;
_bgView.layer.shadowOpacity = 0.11f;
_bgView.layer.shadowRadius = 3.f;
_bgView.layer.shadowOffset = CGSizeMake(3, 3);
_bgView.backgroundColor = [UIColor whiteColor];
_bgView.layer.cornerRadius = 6;
// _bgView.layer.masksToBounds = YES;
}
return _bgView;
}
效果就出来了
圆角设置大了 哈哈 再微调下 希望对你们有帮助