Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// LookReportViewCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/8/30.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import "LookReportViewCell.h"
|
||||
|
||||
@implementation LookReportViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
-(void)cellSetBackViewCorner{
|
||||
|
||||
CGRect backRect= CGRectMake(self.cell1backView.bounds.origin.x,self.cell1backView.bounds.origin.x,kScreenSize.width-8*2,self.cell1backView.bounds.size.height);
|
||||
|
||||
UIBezierPath *maskPath=[UIBezierPath bezierPathWithRoundedRect:backRect byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(5, 5)];
|
||||
CAShapeLayer *maskLayer =[[CAShapeLayer alloc] init];
|
||||
maskLayer.frame = backRect;
|
||||
maskLayer.path = maskPath.CGPath;
|
||||
self.cell1backView.layer.mask = maskLayer;
|
||||
|
||||
|
||||
CGRect backlabel= CGRectMake(self.baogaolabel.bounds.origin.x,self.baogaolabel.bounds.origin.x,kScreenSize.width-8*2,self.baogaolabel.bounds.size.height);
|
||||
|
||||
UIBezierPath *maskPath1=[UIBezierPath bezierPathWithRoundedRect:backRect byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(5, 5)];
|
||||
CAShapeLayer *maskLayer1 =[[CAShapeLayer alloc] init];
|
||||
maskLayer1.frame = backlabel;
|
||||
maskLayer1.path = maskPath1.CGPath;
|
||||
self.baogaolabel.layer.mask = maskLayer1;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user