• 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
Problem with MKUserTrackingBarButtonItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with MKUserTrackingBarButtonItem


  • Subject: Problem with MKUserTrackingBarButtonItem
  • From: Laurent Daudelin <email@hidden>
  • Date: Sat, 22 Sep 2012 01:15:50 -0700

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					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: Toddler-proofing an app (disabling spotlight keyboard shortcut)?
  • Next by Date: Migrating to iPhone 5 screen size
  • Previous by thread: Re: Toddler-proofing an app: selectively disabling function keys?
  • Next by thread: Migrating to iPhone 5 screen size
  • Index(es):
    • Date
    • Thread