View Controller

When you create iOS apps, you often need to create multiple screens for each app. Each screen is managed by an instance of the UIViewController class, where other UIView objects for the various user interface elements are added. As you saw in the previous chapter, the screens can be designed using Interface Builder to add the various user interface elements needed for the app. In this situation, the View Controller is managed in three files: a .storyboard file that specifies the layout of user interface elements, a .h file that has information about any outlets and actions needed to control the user interface, and a .m file that contains the implementation of the user interface actions, as well as any setup needed for the user ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.