Merge pull request #1560 from friedbunny/compass-device-rotation-rotation

Rotate compass on device orientation changes
This commit is contained in:
Brad Leege
2015-05-14 16:10:00 -05:00

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 -