O'Reilly logo

iPhone Location Aware Apps by Example by Zeeshan Chawdhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — using local notifications

We create a simple example of an app that uses local notifications. We also use the application badge (the number that gets appended to your Email app on the iPhone, signifying the unread e-mail messages or similar number on the Message App). We control the application badge with the new iOS 5 control UIStepper that is basically a UI control for increasing or decreasing a value. In our case, it is the application badge number.

  1. We begin with creating a new single View application named Local Notifications. In the ViewController.h file, we declare a variable of type UILocalNotification named localNotification that will be responsible for controlling the local notifications in our app. We create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required