MKUserTrackingBarButtonItem changed behavior under iOS 6?
MKUserTrackingBarButtonItem changed behavior under iOS 6?
- Subject: MKUserTrackingBarButtonItem changed behavior under iOS 6?
- From: Laurent Daudelin <email@hidden>
- Date: Wed, 19 Sep 2012 13:03:25 -0700
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 email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden