单独设置圆角
代码出处: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];
}