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 WeatherBug API

Let's create a barebones app that uses the three WeatherBug API discussed in the previous section. We will use the Hello Location example again, but this time, we make the UI a bit of a run-of-the-mill iOS app UI.

We will create an app that will detect the location, convert the location to city name, fetch weather information, and forecast and display the same in a UITableView.

  1. We begin declaring the variables that will be used in our app, open Hello_LocationViewController.h, and add a variable, weatherTable, for the UITableView - UITableView *weatherTable;
  2. Next, we declare the variables that will be used to hold the Live Weather information:
    NSString *weatherIcon; NSString *weatherConditions; NSString ...

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