Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-14-2011, 02:46 PM   #25 (permalink)
greg_
Registered Member
 
Join Date: Mar 2011
Posts: 1
greg_ is on a distinguished road
Default CLLocationManager

Quote:
Originally Posted by skunkio View Post
Hi guys,
any update on it? I have the same issue but only if my iphone is connected with wi-fi. Looks work fine under 3g but the position is not really correct.
Using Maps within my iphone the location is right and works also under wi-fi.
Any idea?!?
This issue ( error 503 ) was fooling me for an hour. I am using CLLocationManager which notifies about updates. Its delegate method -locationManager:didUpdateToLocation:fromLocation: creates an instance of
MKReverseGeocoder which immediately after creation receives a -start message. I noticed, that often -locationManager:didUpdateToLocation:fromLocation: is called twice in short time span (<1s). In these cases, usually on initialization, the application was crashing. Locking the delegate's method for some time (I used 3s) prevents crashing.
This may be a separate case but maybe it helps somebody - guaratee only one performing instance of the reverse geocoder at a time.
greg_ is offline   Reply With Quote
 

» Advertisements
» Online Users: 389
13 members and 376 guests
alexeir, asleylq98, DaveDee, eski, gogoman, lionelnlex, matador1978, networ, Pudding, sacha1996, Sami Gh, sirenum, Vijithasri06
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,595
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Vijithasri06
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:24 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.