New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLTableViewController doesn't configure cells correctly under iOS 8 #36
Comments
I'll start looking into iOS8 when my project starts migrating in about a week. |
Your sample project doesn't compile. |
The sample project uses Cocoapods. Did you run Alternatively hook up TLIPT to the project in whatever way you prefer. |
The method used to automatically calculate cell height in - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return self.tableView.rowHeight;
} If you're using self-sizing cells, use the above override and add the following: - (void)viewDidLoad {
[super viewDidLoad];
// ...
self.tableView.rowHeight = UITableViewAutomaticDimension;
} For other cases, you'll need to use your own logic. |
The height issue is solved, but custom cells with left padding (added in layoutSubviews) are reset to 0 padding when I reload data using TLIndexPathTools library. |
Popa that has nothing to do with this ticket. Furthermore, I doubt it has anything to do with TLIndexPathTools because |
@wtmoose I've demonstrated in the demo project that using I have reproduced this behaviour a moment ago with my project. At this point in time I'm going for the |
I acknowledged the issue and suggested a workaround 6 weeks ago and you didn't respond. As outlined in the readme, you can use a |
Overriding heighForRowAtIndexPath always works. I also cannot reproduce the problem with the latest versions, using iOS 8.1. Was this fixed? If yes, maybe it should be closed? |
@csotiriou this is still an issue in iOS8.1 as can be seen by running the sample project. I think it only affects non-custom cells in universal storyboards. These cells are getting dequeued out of the storyboard with a zero frame, breaking the cell height logic in Now that iOS has self-sizing cells, the |
See comments in Settings example project
Workaround published in 0.3.10. Demonstrated in Settings example project. Comment from Settings project:
|
Demo project showing broken cell here: https://github.com/fatuhoku/Demo-TLIndexPathTools-Tables-Broken-Under-iOS8/tree/develop. Tested on Simulator, iPad Air (iOS 8).
Two symptoms:
UITableViewCell
(Basic, Left / Right Detail, Subtitle) are misplacedThe provided demo project covers the first case.
Using
UITableViewController
and explicitly wiring it up withTLIndexPathController
still works.The text was updated successfully, but these errors were encountered: