Since moving to iOS 6, it seems that the MKUserTrackingBarButtonItem that I was 
using with my map to give the user control over the tracking is still working 
but not changing its own image depending on the tracking mode. Basically, when 
the map has a tracking mode of MKUserTrackingModeNone, the locator icon still 
shows in color, as if the mode was MKUserTrackingModeFollow. When the mode is 
MKUserTrackingModeFollowWithHeading, then the icon changes for the expected 
tracking with heading image.

So, I'm stumped. This was working before I moved to Xcode 4.5 and the iOS 6 
SDK. Here is the code I use to create the MKUserTrackingBarButtonItem:

        self.userTrackingModeButton = [[MKUserTrackingBarButtonItem alloc] 
initWithMapView:self.rangeMapView];
        NSArray *leftBarButtonItems = [NSArray 
arrayWithObjects:self.userTrackingModeButton, self.showOverlayButton, nil];

I know that the tracking mode changes when I tap the button because in my 
mapView:didChangeUserTrackingMode:animated:, I print the new mode and it always 
change as expected.

Anybody has seen this or has any idea what's going on? Is this a bug in the iOS 
6 SDK?

Thanks in advance.

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
laur...@nemesys-soft.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to