I switch between three different map orientation modes using MKUserTrackingModeNone , MKUserTrackingModeFollow , MKUserTrackingModeFollowWithHeading , and it works.
However, I have a problem with the orientation of the map not returning north (north on the map at the top of the screen) when switching from MKUserTrackingModeFollowWithHeading to MKUserTrackingModeNone .
In an embedded card application on an iphone/ipad stream is as follows:
When you start the application, it is in MKUserTrackingModeNone mode and oriented north. When you switch the orientation mode, it changes to MKUserTrackingModeFollow , and the orientation is still north.
When you switch again, it changes to MKUserTrackingModeFollowWithHeading , and the map rotates in accordance with the direction you are in / point the iPhone.
When you switch the orientation again, it returns to MKUserTrackingModeNone , and the map rotates well back to the north orientation.
I would like my application to relate to orientation in switch mode as well, but when I do this as in step 4 above and switch from MKUserTrackingModeFollowWithHeading to MKUserTrackingModeNone , the orientation remains the same making the orientation switch instead of rotating back to the north orientation.
I set the orientation switch with the standard MKUserTrackingBarButtonItem control located on the toolbar.
Can someone please help me solve this problem?
source share