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 — defining the Home screen

  1. Open the AppDelegate.m file in your newly created WeatherPackt application project. Modify the didFinishLaunchingWithOptions method to include the third view controller in the TabBarController.
    if ([[UIDevicecurrentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { viewController1 = [[FirstViewControlleralloc] initWithNibName:@"FirstViewController_iPhone"bundle:nil]; viewController2 = [[SecondViewControlleralloc] initWithNibName:@"SecondViewController_iPhone"bundle:nil]; viewController3 = [[ThirdViewControlleralloc] initWithNibName:@"ThirdViewController_iPhone"bundle:nil]; } else { viewController1 = [[FirstViewControlleralloc] initWithNibName:@"FirstViewController_iPad"bundle:nil]; viewController2 ...

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