Changes

Jump to: navigation, search

An Example iOS 4 iPhone Location Application (Xcode 4)

1 byte removed, 19:40, 30 March 2011
Configuring the View Controller
== Configuring the View Controller ==
\The view controller for our application is going to require a number of outlets that will enable the controller to display location information on the labels we will build into the user interface of the application. In addition an action method needs to be defined to connect to a button that will reset the distance counter when touched by the user. Also required are references to CLLocationManager and CLLocation objects which, in turn, require that the CoreLocation.h file be imported. Bringing all these requirements together gives us a locationViewController.h file that reads as follows:
<pre>

Navigation menu