• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MKUserTrackingBarButtonItem changed behavior under iOS 6?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Collision between Cocoa classes for AU and VST plugins
  • Next by Date: NSDocument -close called multiple times?
  • Previous by thread: Re: Best practice when opening a Master-Detail app with no data in it yet
  • Next by thread: NSDocument -close called multiple times?
  • Index(es):
    • Date
    • Thread