42 lines
1.1 KiB
Objective-C
42 lines
1.1 KiB
Objective-C
//
|
|
// IfishCameraRecordSecondCell.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/12/9.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import "IfishCameraRecordSecondCell.h"
|
|
|
|
@implementation IfishCameraRecordSecondCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
|
|
|
|
}
|
|
|
|
-(void)layoutSubviews{
|
|
|
|
[self cellRecordBViewCorner];
|
|
}
|
|
|
|
-(void)cellRecordBViewCorner{
|
|
CGRect backRect= CGRectMake(self.recordBView.bounds.origin.x,self.recordBView.bounds.origin.x,kScreenSize.width-8*2,self.recordBView.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.recordBView.layer.mask = maskLayer;
|
|
|
|
}
|
|
|
|
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
[super setSelected:selected animated:animated];
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
@end
|