The App Delegate class handles application-wide events that are triggered when your app enters the background or the foreground. This means that you can handle when a user taps the home button on their device to exit your application to save important data for the next time the user opens the app. In this movie, see where to place that particular code.
- [Voiceover] So, let's write some code…in our App Delegate class.…What I wanna start out with is just…printing out when all of these methods are triggered.…So, I'll start in application didFinishLaunchingWithOptions.…So, I'm going to go under the comment…and I'm just going to print the string…and I'm going to write the name of the method.…I'll just copy didFinishLaunchingWithOptions…and paste it inside of that string.…Now, I'm actually going to do the same thing…for all of these methods.…So, I'll just copy and paste this code…and then repeat the process…for the rest of the methods here.…
Okay, now I've written a print statement…for each one of these methods here.…So, I have didFinishLaunchingWithOptions,…applicationWillResignActive,…applicationDidEnterBackground,…applicationWillEnterForeground,…applicationDidBecomeActive,…and applicationWillTerminate.…So, what I'm going to do is just run this app…in the simulator…and we're going to see at what point…these methods are called.…So, now that our app's up in the simulator,…
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.