The View Controller class handles view events, like when a view will disappear, when it will appear, when a view is loaded, and so forth. In this movie, see when those events actually occur, and in what order. Also see how to handle those events in your code and how they compare to the events handled by the App Delegate class.
- [Voiceover] Just as your app delegate…handles application wide events…through the UI application delegate protocol,…your view controller class actually can handle view events…such as viewDidLoad.…So you'll see that right here,…and these events apply to views,…and not application wide.…So let's look at what these methods do,…and when they're triggered…compared to when these delegate methods are triggered.…So I'm actually continuing on from the last movie…with all of these print statements inside…of our app delegate class.…
Let's go back to VIewController.swift…and I'm going to print out viewDidLoad right here.…There we go.…And then let's handle some other methods,…so I'll go down a few lines,…and if we type view right here,…you'll see some of the methods that you could handle.…Now we're not going to go through all of these…in this movie.…The main ones you're going to want to handle…are viewDidAppear, viewDidDisappear,…viewWillAppear, viewWillDisappear.…So you'll also notice that there's viewDidUnload,…viewWillTransistionToSize,…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.