Graphics Programs Reference
In-Depth Information
Click the button that steps over a line. This will execute just the current line of code,
which instantiates the CLLocationManager . Notice that the green execution indicator
moves to the next line. Even more interesting, the variables view shows that the value of
locationManager has changed to a valid address in memory - this object is now alive
and well.
At this point, you could continue stepping through the code to see what happens. Or you
could click the button to continue executing your code normally. Or you could step into a
method. Stepping into a method takes you to the method that is called by the line of code
that currently has the green execution indicator. Once you're in the method, you have the
chance to step through its code in the same way.
Let's add a method that we can step into and out of. Declare the following method in
WhereamiViewController.h .
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
@interface WhereamiViewController : UIViewController <CLLocationManagerDelegate>
{
CLLocationManager *locationManager;
}
- (void)doSomethingWeird;
@end
Search WWH ::




Custom Search