Hi there
I have some location code which has been working for ages. I've just
been moving things to iOS6 (esp the new screensize) and I've moved
from 5.4.1 to 5.99.3 (or .4 - whatever is current on the alpha
channel). The location code doesn't appear to be working. It's VERY
simple:
CLLocationManager locationManager = null;
public void GetForCurrentLocation (Action<List<Marker>, int> OnRegionUpdate)
{
if (CLLocationManager.LocationServicesEnabled)
{
if (locationManager == null)
{
locationManager = new CLLocationManager ();
locationManager.DesiredAccuracy =
CLLocation.AccuracyNearestTenMeters;
locationManager.UpdatedLocation += delegate(object sender,
CLLocationUpdatedEventArgs e) {
//do something with it. This never gets called in
5.99.x, but does in 5.4.1
};
locationManager.Failed += delegate(object sender,
NSErrorEventArgs e) {
//handle the errors
};
}
locationManager.StartUpdatingLocation ();
} else {
Util.Log ("Location services is not available");
}
}
This is in a class, and the class it kept around. The UpdatedLocation
method is never called in 5.99.x, but if I switch to 5.4 and clean and
rebuild, it all works again (this is all with iOS6 SDK and iOS6 4"
retina display simulator, or on my phone)
Is this a known regression? Happy to raise a bug if it's not a known thing.
Thanks
Nic
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
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
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
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