1 UIView *containerView = [[[UIView alloc] initWithFrame:CGRectMake(20, 20, 280, 300)] autorelease];
2 containerView.backgroundColor = [UIColor clearColor];
3 containerView.layer.shadowOffset = CGSizeMake(0, 2);
4 containerView.layer.shadowOpacity = 0.80;
设置UIView的简单阴影效果
最新推荐文章于 2024-04-02 13:53:42 发布