tags:

views:

323

answers:

1

Hello,

I am Using the following code to get the user current location in iPhone o 3.1 but the application get crash.Did the code change in 3.1?

CLLocationManager  *locmanager =[[CLLocationManager alloc] init];
        [locmanager  setDelegate:self]; 
        [locmanager setDesiredAccuracy:kCLLocationAccuracyBest];    
        [locmanager startUpdatingLocation];
A: 

is self comforming to CLLocationManagerDelegate ?

CiNN