Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
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
Code:
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.