the file that I need the users information in already has a -flipsideViewControllerDelegate-, so Is there a way that I can get the users location coordinates without using the CLLocationManagerDelegate thing?
A:
You could use -[CLLocationManager location]
to get the most recently returned location, but I'd imagine that you'd still have to have the location manager updating the location.
However, by using the location
property, you're switching from an interrupt-driven mechanism (an asynchronous callback) to a polling mechanism. The former is almost always much more efficient for getting continuous updates.
Dave DeLong
2010-06-17 21:01:51
I dont need continuous updates at the moment, so a polling mechanism would probably be better. However, do i need to make a different .h/.m filegroup to get the location manager to update the location? or could I have it done within my mainViewController (assuming that the mainViewController still has a -FlipSideViewDelegate- in the header file)?
kevin Mendoza
2010-06-17 21:06:35
There's no need for a different .h/.m "filegroup", since a `CLLocationManager` can be stored in an instance variable...
Dave DeLong
2010-06-17 21:13:27
ok. Seems like this is the solution I want, so I'll put your answer as "The" answer.
kevin Mendoza
2010-06-17 21:31:47
A:
for iOS 4.x, location can be found using , MKMapView delegates as well.
ishank
2010-09-21 10:44:03