Rotate compass on device orientation changes

This commit is contained in:
Jason Wray
2015-05-14 13:13:24 -07:00
parent 7d4f12434e
commit 03a129176c

View File

@@ -642,6 +642,12 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
{
[self.attributionSheet dismissWithClickedButtonIndex:self.attributionSheet.cancelButtonIndex animated:YES];
}
if (self.compass.alpha)
{
[self updateHeadingForDeviceOrientation];
[self updateCompass];
}
}
#pragma mark - Life Cycle -