ios - Core Location in iPhone Simulator 3.2 (iPad) -


Therefore,

I am trying to shut down my app on iPad. I am using Wi-Fi digital compass assisted GPS (Wi-Fi + 3G model) cellular (Wi-Fi + 3G) Fi + 3G model)

So it will be possible to get around 3km of the position of my iPad (with at least 3G model).

But this does not work in the simulator (3.2 ipad) (3.1.3 running simulator, shows me cuptoine).

Is there a way to get the position in the simulator (3.2 ipad)? I live in Germany and the iPad has not been released yet, so I can not test it on my device.

Thank you!

Edit

Trying to get my connection

  locationManager = [[CLLocationManager alloc] init]; LocationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; LocationManager.delegate = self; [LocationManager startUpdatingLocation];  

and always on locationManager: (CLLocationManager *) manager didFailWithError: (NSError *) error becomes not 3.1.3

Error object looks like this:

  error domain = kCLErrorDomain code = 0 "operation could not be completed. (KCLErrorDomain Error 0.)"  

Edit

Then I took it something like this:

  - (zero) Location Manager: (CLLocationManager *) Manager didFailWithError :( NSError *) Error {#ifdef TARGET_IPHONE_SIMULATOR // Cupertino CLLocation * Simulator location = [[CLLocation alloc] i NitWithLatitude: 37.33168900 Longitude: -122.03073100]; [Self-Position Manager: Location Manager Updated Location Location: Location of Simulator Location: Location: Zero]; [Simulator space release]; #eels [[NSNotificationCenter defaultCenter] postNotificationName: @ "Error Notification" object: NSLocalizedString (@ "GPS-coordinates could not be detected", @ "")]; #endif}  

This is very messy, but works.

edit2: Try enabling your airport, it can solve the problem !!

Yes, see how good it is.

Edit - Finally I decided to write my own CLLocationManager simulator to test on the iPhone Simulator. It is located on it if you want to use it.


Comments