Abstract
Up until this point, we’ve written applications with a single view controller. While there certainly is a lot you can do with a single view, the real power of the iOS platform emerges when you can switch out views based on user input. Multiview applications come in several different flavors, but the underlying mechanism is the same, regardless of how the app may appear on the screen. In this chapter, we’re going to focus on the structure of multiview applications and the basics of swapping content views by building our own multiview application from scratch. We will write our own custom controller class that switches between two different content views, establishing a strong foundation for taking advantage of the various multiview controllers that Apple provides.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 David Mark, Kim Topley, Jack Nutting, Frederik Olsson, and Jeff LaMarche
About this chapter
Cite this chapter
Mark, D., Topley, K., Nutting, J., Olsson, F., LaMarche, J. (2015). Multiview Applications. In: Beginning iPhone Development with Swift 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1754-2_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1754-2_6
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1753-5
Online ISBN: 978-1-4842-1754-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)