Skip to content

Commit 1fed865

Browse files
committed
项目类型私有公开字体没有对齐 - o(╯□╰)o
1 parent 7a112ba commit 1fed865

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

Coding_iOS/Controllers/NewProject/NewProjectTypeViewController.m

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,11 @@ -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NS
113113

114114
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
115115
{
116-
//
117-
if (indexPath.row == 0) {
118-
return;
119-
}
120-
121-
// Remove seperator inset
122-
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
123-
[cell setSeparatorInset:UIEdgeInsetsZero];
124-
}
125-
116+
CGFloat padding = kPaddingLeftWidth;
117+
cell.indentationLevel = 1;
118+
cell.indentationWidth = indexPath.row == 0? 0 : padding;
119+
cell.separatorInset = UIEdgeInsetsMake(0, indexPath.row == 0? padding: 0, 0, 0);
120+
126121
// Prevent the cell from inheriting the Table View's margin settings
127122
if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
128123
[cell setPreservesSuperviewLayoutMargins:NO];

0 commit comments

Comments
 (0)