cell添加阴影效果(不是给定阴影图片)
来源:互联网 发布:海南网络广播电视台 编辑:程序博客网 时间:2024/05/17 05:51
添加阴影
-(void)layoutSubviews{
[superlayoutSubviews];
self.layer.shadowColor = [UIColorblackColor].CGColor;
self.layer.shadowOpacity = 0.6;
self.layer.shadowRadius = 2.0;
self.layer.shouldRasterize =YES;
self.layer.rasterizationScale = [UIScreenmainScreen].scale;
CGPathRef path = [UIBezierPathbezierPathWithRect:CGRectMake(0,self.bounds.size.height, [UIScreen mainScreen].bounds.size.width,2)].CGPath;
[self.layersetShadowPath:path];
}
添加分割线
-(void)drawRect:(CGRect)rect{
CGContextRef context =UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [UIColorwhiteColor].CGColor);
CGContextFillRect(context, rect);
CGContextSetStrokeColorWithColor(context, [UIcolorExternhexStringToColor:@"e5e5e5"].CGColor);
CGContextStrokeRect(context,CGRectMake(14, rect.size.height - 0.5, rect.size.width-14, 0.5));
}
- cell添加阴影效果(不是给定阴影图片)
- 给cell 添加阴影
- 使用canvas为图片添加阴影效果
- div添加阴影效果
- View 添加阴影效果
- layerlist添加阴影效果
- View 添加阴影效果
- 给tableview cell添加阴影:
- 图片阴影效果
- 给图片添加阴影
- 给图片添加阴影
- UIButton添加阴影图片
- ios 图片添加阴影
- css3图片添加阴影
- Android 给图片、文字、控件、布局添加阴影效果(悬浮效果)
- css样式实现给图片添加阴影效果
- IOS为文字和图片添加阴影效果
- Android图片添加阴影效果的两种方式
- UIWebView中Objective-C与JavaScript交互
- gzip压缩tomcat服务器响应包,大幅提升web性能
- PAT 1012 The Best Rank
- 远程登录Linux图形化界面
- ParameterMethodNameResolver 用法(采用请求参数匹配方法名)
- cell添加阴影效果(不是给定阴影图片)
- vc中gb2312和UTF-8的转换
- 在PowerPoint中播放多种音视频文件
- 安卓网络访问框架okhttp环境搭建
- 绘图软件 gnuplot homepage
- 自定义progressDialog的方法
- C/C++库函数(tolower/toupper)实现字母的大小写转换
- android studio 编译前拷贝代码到assets
- 随机采样和随机模拟:吉布斯采样Gibbs Sampling实现高斯分布参数推断