xAppDelegate.h
xAppDelegate.m
tested the code on iPhone 3gs
and the debugger gives me:
0 , 5.862950985069642e-37
what is wrong?
thanx
Code:
NSNumber *currentLatitude;
NSNumber *currentLongitude;
CLLocationManager *locationManager;
xAppDelegate.m
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
CLLocation *location = [locationManager location];
CLLocationCoordinate2D coordinate = [location coordinate];
currentLongitude = [NSNumber numberWithDouble:coordinate.longitude];
currentLatitude = [NSNumber numberWithDouble:coordinate.latitude];
NSLog([NSString stringWithFormat:@"%@ , %@", currentLatitude, currentLongitude]);
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
tested the code on iPhone 3gs
and the debugger gives me:
0 , 5.862950985069642e-37
what is wrong?
thanx