Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:51:12+00:00 2026-06-13T12:51:12+00:00

UPDATE Apple fixed this is iOS 7. More info after public launch. So, I

  • 0

UPDATE

Apple fixed this is iOS 7. More info after public launch.


So, I have this bit of code:

- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading
{
    CGAffineTransform transform = CGAffineTransformMakeRotation(degToRad([newHeading trueHeading]));
    [mapView setTransform: transform];
}

Which beautifully renders directionally rotated map, like so:

enter image description here

Problem is, the labels are all upside down. Now, I’m pretty sure one can work around this, because I believe Apple touted the ability to rotate labels in an iOS 6 keynote. I’m just not seeing how.

For comparison, the effect I’d like, as implemented in the stock Maps app:

enter image description here

TL;DR

How do I rotate the map, but keep the labels right-side up?
Or at least rotate the labels independently of the map?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:51:12+00:00Added an answer on June 13, 2026 at 12:51 pm

    Applying a transformation onto the map is not the correct way to apply user heading rotations. Metaphorically speaking you’re rotating the entire canvas instead of the elements on the canvas.

    What you want to do is to call:
    [mapView setUserTrackingMode:MKUserTrackingModeFollowWithHeading animated:YES];
    (for instance in your viewDid/WillAppear method or some IBAction trigger method.

    You can read more about it here:
    http://developer.apple.com/library/ios/documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html#//apple_ref/occ/instm/MKMapView/setUserTrackingMode:animated:

    By calling above method you tell the map view to start updating the heading (rotation). Label rotations will then adjust automagically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: I reported this as a bug to Apple and they fixed it! All
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
UPDATE: Got a mail from Apple saying that the bug/issue has been fixed now
I have a site that utilizes a bottom fixed position masthead here: http://www.entheospartners.com/newsite/ This
update: After not getting anywhere with this, I noticed that when I pulled the
Bug reported as fixed by Apple, see accepted answer below ... UPDATE MON AUG
UPDATE: Seems to me like it is pretty much an Apple bug. I tried
Update : This is no longer an issue from C# 6, which has introduced
Update: Switching to IIS Express instead of the Visual Studio Development Server fixed the
This makes no sense, but suddenly one of the iPhone (iOS 5.0 target) apps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.