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 — plotting events on a map

  1. Open Xcode and start a new project by selecting the Tabbed Application template. Name it Hello Events:Maps.
  2. We use the last example, Hello Events, and create the first tab as the Hello Events:SQLite application we saw before. We add the tab icon as a calendar, and on the second tab, we add an image for the map view. These images are free to use, as mentioned earlier:
    // Hello_EventsFirstViewController.m - (id)initWithNibName:(NSString *)nibNameOrNil bundle: (NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = NSLocalizedString(@"Events", @"Events"); self.tabBarItem.image = [UIImage imageNamed: @"Mobile-Icons/02_calendar_48.png"]; ...

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