I've been using the following code since a couple of months now:

        self.userTrackingModeButton = [[MKUserTrackingBarButtonItem alloc] 
initWithMapView:self.rangeMapView];
        [self.userTrackingModeButton setTarget:self];
        [self.userTrackingModeButton setAction:@selector(track:)];
        [self.navigationController.navigationBar.topItem 
setLeftBarButtonItem:self.userTrackingModeButton];

This has been working fine in iOS 5 or better. I set a custom action to change 
my annotation views depending on the tracking.

Under iOS 5, the bar button item has always displayed its current tracking 
mode, none, follow or follow heading.

Now that I'm using the iOS 6 SDK as the base SDK, the  bar button item doesn't 
completely show its current state. For no tracking or follow, it will show with 
the same color, so there is now way to tell whether it's not tracking or 
following. Follow heading works fine because the icon is different.

So, has anybody else noticed something similar? Is there something I'm doing 
wrong in my code above?

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