Skip to content

Commit 52197ae

Browse files
committed
Settings cell layout must be finished in cellForRowAtIndexPath
Avoid wrong position of footer for some iOS versions.
1 parent bc4a096 commit 52197ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

XBMC Remote/SettingsValuesViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ - (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)
388388
return numRows;
389389
}
390390

391-
- (void)tableView:(UITableView*)tableView willDisplayCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath*)indexPath {
391+
- (void)layoutCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath*)indexPath {
392392
cell.backgroundColor = [Utilities getSystemGray6];
393393
cell.tintColor = [Utilities getSystemBlue];
394394
cell.accessoryType = UITableViewCellAccessoryNone;
@@ -685,6 +685,7 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
685685
textInputField.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
686686
[cell.contentView addSubview:textInputField];
687687
}
688+
[self layoutCell:cell forRowAtIndexPath:indexPath];
688689
return cell;
689690
}
690691

0 commit comments

Comments
 (0)