|
@@ -40,7 +40,7 @@
|
|
|
make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
}];
|
|
|
|
|
|
- //self.tableView.tableFooterView = [self tailView];
|
|
|
+ self.tableView.tableFooterView = [self tailView];
|
|
|
}
|
|
|
|
|
|
#pragma mark - 懒加载
|
|
@@ -170,7 +170,8 @@
|
|
|
}
|
|
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
|
|
- return 2;
|
|
|
+ //return 2;
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
- (fileSetTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
|
@@ -203,14 +204,20 @@
|
|
|
|
|
|
/*上圆角*/
|
|
|
//设置部分圆角 贝塞尔曲线
|
|
|
+// UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 60)
|
|
|
+// byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
|
|
|
+// cornerRadii:CGSizeMake(8, 8)];
|
|
|
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-30 , 60)
|
|
|
- byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
|
|
|
+ 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 == 1){
|
|
|
[cell.titleLabel setText:NSLocalizedString(@"File_Transfer_set_battery_level",nil)];
|
|
|
|