I just hard code a co-ord just after I get the callback from the
CLLocationManager
locationDelegate.OnLocationUpdate += delegate(CLLocation location) {
CLLocationCoordinate2D coord =
location.Coordinate;
#if DEBUG
coord = Locations.Home;
#endif
var bikeList =
BikeLocation.FindClosestBikeList(coord.Latitude, coord.Longitude);
:)
Hacky, but it works for me
On Tue, Apr 10, 2012 at 16:01, Wally McClure
<[email protected]> wrote:
> John,
>
> I've been using the Debug -> Location option in the iOS Simulator. Is there
> a way to do this via MonoDevelop?
>
> Wally
>
>> Date: Tue, 10 Apr 2012 04:32:16 -0700
>> From: [email protected]
>> To: [email protected]
>> Subject: [MonoTouch] CoreLocation simulator testing
>
>>
>> How can I set the location of the ios simulator to test projects that use
>> CoreLocation?
>>
>> In xcode this is done by running the project. Then pressing the
>> CoreLocation/navigation symbol on the debug bar next to the debug controls
>> (pause, continue, step over etc...). You can then select preset locations
>> or
>> add a GPX file.
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/CoreLocation-simulator-testing-tp4545328p4545328.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> MonoTouch mailing list
>> [email protected]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch