I tried to set the user tracking mode in the viewDidLoad method (and in viewWillAppear). If I set it to MKUserTrackingModeFollowWithHeading (value of 2), it does not take effect. Actually, right after setting its value to 2, if I print it value, it is 1, why? I have never seen such a thing in any programming experience!
Here is how I set it:
[self.mapView setUserTrackingMode: MKUserTrackingModeFollowWithHeading
animated: YES];
If I do the same in the viewWillAppear method, the effect is the same. However, the second time this view is displayed, the setting will take effect. (I have a tab viewcontroller, I switch the view to another and then switch back).
The way I see it does not take effect is two measures: (1) print its value right after setting it (2) in the map view, the heading is not displayed.
What the is going on?