设置UIView的简单阴影效果

简介: <pre style="margin-top:0px; margin-bottom:0px; padding:0px; white-space:pre-wrap; word-wrap:break-word; line-height:18px; background-color:rgb(245,245,245); font-family:'Courier New'!important"><s
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;
目录
相关文章
UITextView设置边框
UITextView设置边框
46 0
UIImageView加上圆角
UIImageView加上圆角
40 0
UIView添加圆角边框
UIView添加圆角边框
61 0
|
UED 缓存 异构计算
UIImageView添加圆角的几种方法
喜欢我的可以关注收藏我的个人博客:RobberJJ 创建一个UIImageView对象: UIImageView * poImgView = [[UIImageView alloc] init]; 第一种方法 poImgView.
943 0