ifish/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/KanHuViewLastCell.m

36 lines
982 B
Objective-C

//
// KanHuViewLastCell.m
// Ifish
//
// Created by imac on 16/9/2.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import "KanHuViewLastCell.h"
@implementation KanHuViewLastCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
CGRect backRect= CGRectMake(self.lastViewBack.bounds.origin.x,self.lastViewBack.bounds.origin.x,kScreenSize.width-8*2,self.lastViewBack.bounds.size.height);
UIBezierPath *maskPath=[UIBezierPath bezierPathWithRoundedRect:backRect byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(5, 5)];
CAShapeLayer *maskLayer =[[CAShapeLayer alloc] init];
maskLayer.frame = backRect;
maskLayer.path = maskPath.CGPath;
self.lastViewBack.layer.mask = maskLayer;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end