-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Request] Self-sizing (auto layout) cells for Pinterest layout #4
Comments
Hello, That is a good question! In order to answer it, we need to take a look at how self-sizing cells work for For instance, in cases when we have In cases when we have completely dynamic content and don't know anything ahead of time, we need to implement callbacks that will check for content as soon as it's available during the run-time and delegate the heights to the layout. Then, sum up the heights in Another solution (№2) for dynamic text is to get rid of any predefined heights (as it's done in the Font sizes have grown and can be dynamically changed, if you compare this screen shoot with the previous one that has completely different font size: I hope, I did understand you right and it will help you! 😉 |
This was extremely helpful. Thank you! |
Sure! You are welcome, glad to help 👍 |
your images is static can you help me for download image from server..When i download image from server than it is look like this https://i.stack.imgur.com/wErOM.png Image content mode = .aspectFit I want download image from server and then it set according to aspect ratio. is it possible? |
What you mean is that the images are in app's bundle, rather than in a remote server (by referring to it as |
Hello!
I noticed in the Pinterest layout that a delegate method is called to ask the cells how tall they should be based on their content. Is there a way to work with cells that self-size using Auto Layout? This would be really useful for cells that have dynamically sized content like text.
The text was updated successfully, but these errors were encountered: