Skip to content
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

estimatedRowHeight = UITableViewAutomaticDimension not enough for iOS8/9 #27

Open
fmaylinch opened this issue Sep 26, 2015 · 0 comments

Comments

@fmaylinch
Copy link

With the iOS7+ version of this piece of code running in iOS8/9, I get lots of layout conflicts and calls to heightForRowAtIndexPath for every row, so I merged both versions:

    if #available(iOS 8.0, *) {
        rowHeight = UITableViewAutomaticDimension
        estimatedRowHeight = 400
    } else {
        estimatedRowHeight = UITableViewAutomaticDimension
    }

I don't think this is related, but I also had to use this solution to avoid layout conflicts. I think it's necessary when the default height of 44 is not enough to fit your views initially (for example if you are add a constraint like "V:|-[v(100)]-|").

With both changes, I get it working without layout conflicts. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant