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 — consuming the foursquare venue API - categories

  1. Open Xcode, and start a new project named Hello foursquare, using the Tabbed Application template.
  2. Add a new header file (.h extension) to your project, by selecting the File | New | New File | C and C++ option from Xcode file menu. Name the new file as Configuration.h. This file will hold the foursquare client ID and client secret, and any other foursquare configuration that we might need in future. Keep the configuration in one place, make the code more robust and easy-to-extend, as anyone can start using the code by replacing the configuration values. You can define the values in the Configuration.h file as follows:
    #ifndef Hello_foursquare_Configuration_h #define Hello_foursquare_Configuration_h ...

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