PDA

View Full Version : What may be the reason?




arnieterm
Feb 18, 2009, 08:27 AM
I am trying to use CLLocationManager for an iphone app. But I am always getting the "didFailWithError" event and "didUpdateToLocation" event does not fire. I have Location Services Enabled in my iphone General section.
I have added all the code necessary for getting a CLLocationManager to start work like

if(locationManager.locationServicesEnabled)
{
[locationManager startUpdatingLocation];
}

One of the reason may be that the CLLocationManager is not able to get the location in the area [I guess, I am from india]. Also the iphone currently do not have any SIM. Does SIM has anything to do with locationServices?
Whats going wrong here? Any idea??
Thanks
Arnieterm