Auto Layout Dynamic Height for UITableViewCell with Custom Fonts and Storyboard

Опубликовано: 20 Октябрь 2024
на канале: Paul Solt
42,356
147

Auto Layout Dynamic Height for UITableViewCell with Custom Fonts and Storyboard

Github Xcode Project: https://github.com/PaulSolt/AutoLayou...

Setup Auto Layout inside your UITableViewCell subclasses correctly. There are a lot of places that you can mess up, make sure you watch closely. I'll show you how to make it work, and then the potential issues and how to recover from them.

I will show you how to use dynamic cell height using auto layout. You can calculate the cell height using methods that leverage your layout.

I will show you how to use heightForRowAtIndexPath: with a cached UITableViewCell.

Use estimatedHeightForRowAtIndexPath: to increase the performance of your app on load time. It'll make your app feel more responsive for large data sets.

UITableViewDelegate: https://developer.apple.com/library/i...

UITableViewCell Guide: https://developer.apple.com/library/i...


Click here to Subscribe to learn how to make iPhone apps. http://www.youtube.com/subscription_c...

Links:
Blog: http://iPhoneDev.tv
iPhone Courses: http://learn.iphonedev.tv/course/iPho...

Contact:
YouTube Channel:    / paulsolt  
Twitter:   / paulsolt  
Facebook:   / paulsolt  
Google+: https://plus.google.com/u/0/+PaulSoltInc
Paul's iPhone Apps: http://AppStore.com/PaulSolt