iOS 点滴积累
2016-04-19 17:17
495 查看
单独设置圆角
tableViewCell 分割线颜色等
代码出处:http://huangshaohua.cn/2015/08/18/iosyuan-jiao-na-xie-shi/ 非常棒的一个博主 UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.blueView.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerBottomLeft cornerRadii:CGSizeMake(20, 0)]; CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; maskLayer.frame = self.blueView.bounds; maskLayer.path = maskPath.CGPath; self.blueView.layer.mask = maskLayer; self.blueView.layer.cornerRadius = 5.f; // 这行可以注 主要是实现一个对比效果的 self.blueView.layer.masksToBounds = YES;
tableViewCell 分割线颜色等
if ([self.accountSettingTableView respondsToSelector:@selector(setSeparatorColor:)]) { [self.accountSettingTableView setSeparatorColor:kFontColorWith909090]; }
相关文章推荐
- iOS根据日期、数值给model排序
- ios点击空白界面退出键盘问题。
- iOS学习笔记-----文件操作
- 不用导入SDK就可实现导航--URI方式跳转到各类地图进行导航
- iOS CALayer视图图层
- ios 苹果手机硬件摘要
- iOS基于B站的IJKPlayer框架的流媒体探究
- iOS核心动画--浅析三个动画的实现
- iOS学习笔记之ARC内存管理
- 2016年最新苹果开发者账号注册申请流程最强详解!
- iOS获取设备唯一标识符的方法
- iOS中如何在欢迎界面中动态加载广告
- iOS开发进阶之图说
- iOS开发系列--音频播放、录音、视频播放、拍照、视频录制
- iOS开发中怎么获取设备的唯一标识
- block的学习(block和timer的循环引用问题)
- ios常见加密解密方法
- ios在真机调试中出现The executable was signed with invalid entitlements错误
- iOS开发之AFNetworking 3.0.4使用
- Cordova - 使用Cordova开发iOS应用实战3(添加Cordova控制台插件)