Intermediate iOS 15 Programming with Swift by Simon Ng
Author:Simon Ng
Language: eng
Format: epub, mobi
Publisher: GitBook
Figure 24.6. Tapping the snapshot now dismisses the menu
By applying custom view controller transitions properly, you can greatly improve the user experience and set your app apart from the crowd. The slide down menu is just an example, so try to create your own animation in your next app.
For reference, you can download the final project from http://www.appcoda.com/resources/swift55/SlideDownMenu.zip.
Chapter 25
Self Sizing Cells and Dynamic Type
In iOS 8, Apple introduced a new feature for UITableView known as Self Sizing Cells. To me, this was seriously one of the most exciting features for the SDK at the time. Prior to iOS 8, if you wanted to display dynamic content in a table view with variable heights, you would need to calculate the row height manually. In iOS 11, Apple's engineers take this feature even further. The self-sizing feature is enabled automatically. In other words, header views, footer views and cells use self-sizing by default for displaying dynamic content.
While this feature is now enabled without the need of configurations in iOS 14, I want you to understand what happens under the hood. In brief, here is what you need to do when using self sizing cells:
Define auto layout constraints for your prototype cell
Specify the estimatedRowHeight property of your table view
Set the rowHeight property of your table view to UITableView.automaticDimension
Download
Intermediate iOS 15 Programming with Swift by Simon Ng.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ada | Ajax |
Assembly Language Programming | Borland Delphi |
C & C++ | C# |
CSS | Compiler Design |
Compilers | DHTML |
Debugging | Delphi |
Fortran | Java |
Lisp | Perl |
Prolog | Python |
RPG | Ruby |
Swift | Visual Basic |
XHTML | XML |
XSL |
Hello! Python by Anthony Briggs(9865)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9755)
The Mikado Method by Ola Ellnestam Daniel Brolund(9745)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8256)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7743)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7739)
Grails in Action by Glen Smith Peter Ledbrook(7665)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7514)
Windows APT Warfare by Sheng-Hao Ma(6497)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6376)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6243)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6112)
Kotlin in Action by Dmitry Jemerov(5017)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4295)
Functional Programming in JavaScript by Mantyla Dan(4016)
Solidity Programming Essentials by Ritesh Modi(3836)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3611)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3562)
The Ultimate iOS Interview Playbook by Avi Tsadok(3529)
