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 — exploring the foursquare Search API

  1. Continuing from where we left off from the Hello foursquare example, we add a UISearchBar to our second View controller in the Interface Builder.
    Time for action — exploring the foursquare Search API
  2. In the Hello_foursquareSecondViewController.h file, we define a variable of the type UISearchBar in the class declaration UISearchBar *venuesSearchBar;, and expose it as a property.
    @property(retain,nonatomic) IBOutlet UISearchBar *venuesSearchBar;
    
  3. Connect the venuesSearchBar outlet to the Search bar in the Interface builder by Control+dragging the mouse pointer from the second View controller to the Search bar.
    • Drop the mouse pointer ...

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