Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

SUMMARY

In this chapter, you have seen how background execution works and how you can utilize it to make your applications more useful. You have also seen the other types of notifications that you can utilize in your applications — scheduling local notifications though the operating system, and using the NSNotification class for notifying objects within your application.

Combining all the different concepts discussed in this chapter will enable you to write compelling iOS applications.

EXERCISES

  1. Name the three types of applications that are allowed to execute in the background.
  2. Which devices support multitasking?
  3. For the CLLocationManager class, when should you use the startUpdatingLocation and startMonitoringSignificantLocationChanges methods? Why?
  4. What is the difference between Apple Push Notification service and local notifications?

Answers to the exercises can be found in Appendix D.

image WHAT YOU LEARNED IN THIS CHAPTER

TOPIC KEY CONCEPTS
Opting out of background execution Use the UIApplicationExitsOnSuspend key.
Tracking locations in the background Use the UIBackgroundModes key.
Monitoring significant location changes Use the startMonitoringSignificantLocationChanges method.
Creating local notifications Use the UILocalNotification class.
Scheduling a local notification [[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
Presenting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book