|
|
@@ -182,38 +182,51 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if (row == 0){
|
|
|
-
|
|
|
- /*上圆角*/
|
|
|
+ if(_folderListArr.count == 1){
|
|
|
//设置部分圆角 贝塞尔曲线
|
|
|
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 90)
|
|
|
- byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
|
|
|
- cornerRadii:CGSizeMake(8, 8)];
|
|
|
- CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
- maskLayer.frame = cell.cellBgView.bounds;
|
|
|
- maskLayer.path = maskPath.CGPath;
|
|
|
- cell.bgViewLayer = maskLayer;
|
|
|
- cell.cellBgView.layer.mask = cell.bgViewLayer;
|
|
|
- }//else
|
|
|
-
|
|
|
- if (row == _folderListArr.count -1){
|
|
|
- //[cell.titleLabel setText:NSLocalizedString(@"File_Transfer_set_battery_level",nil)];
|
|
|
-
|
|
|
- //cell.titleLabel.text = @"云机名称/我的空间/XYJ";
|
|
|
-
|
|
|
- /*下圆角*/
|
|
|
- UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 90)
|
|
|
- byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight
|
|
|
+ byRoundingCorners:UIRectCornerAllCorners
|
|
|
cornerRadii:CGSizeMake(8, 8)];
|
|
|
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
maskLayer.frame = cell.cellBgView.bounds;
|
|
|
maskLayer.path = maskPath.CGPath;
|
|
|
cell.bgViewLayer = maskLayer;
|
|
|
cell.cellBgView.layer.mask = cell.bgViewLayer;
|
|
|
-
|
|
|
- [cell.lineView setHidden:YES];
|
|
|
}
|
|
|
+ else{
|
|
|
+ if (row == 0){
|
|
|
+
|
|
|
+ /*上圆角*/
|
|
|
+ //设置部分圆角 贝塞尔曲线
|
|
|
+ UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 90)
|
|
|
+ byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
|
|
|
+ cornerRadii:CGSizeMake(8, 8)];
|
|
|
+ CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
+ maskLayer.frame = cell.cellBgView.bounds;
|
|
|
+ maskLayer.path = maskPath.CGPath;
|
|
|
+ cell.bgViewLayer = maskLayer;
|
|
|
+ cell.cellBgView.layer.mask = cell.bgViewLayer;
|
|
|
+ }//else
|
|
|
+
|
|
|
+ if (row == _folderListArr.count -1){
|
|
|
+ //[cell.titleLabel setText:NSLocalizedString(@"File_Transfer_set_battery_level",nil)];
|
|
|
+
|
|
|
+ //cell.titleLabel.text = @"云机名称/我的空间/XYJ";
|
|
|
+
|
|
|
+ /*下圆角*/
|
|
|
+ UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 90)
|
|
|
+ byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight
|
|
|
+ cornerRadii:CGSizeMake(8, 8)];
|
|
|
+ CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
+ maskLayer.frame = cell.cellBgView.bounds;
|
|
|
+ maskLayer.path = maskPath.CGPath;
|
|
|
+ cell.bgViewLayer = maskLayer;
|
|
|
+ cell.cellBgView.layer.mask = cell.bgViewLayer;
|
|
|
+
|
|
|
+ [cell.lineView setHidden:YES];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
KWeakSelf
|
|
|
cell.didClickSwitch = ^(BOOL SwitchOn) {
|