您的位置:首页 > 移动开发 > IOS开发

iOS 点滴积累

2016-04-19 17:17 495 查看
单独设置圆角

代码出处: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];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: