diff --git a/Classes/HUD/M13ProgressHUD.m b/Classes/HUD/M13ProgressHUD.m index 86dbabe..1c12cf9 100644 --- a/Classes/HUD/M13ProgressHUD.m +++ b/Classes/HUD/M13ProgressHUD.m @@ -407,7 +407,7 @@ - (void)unregisterFromNotificationCenter { } - (void)deviceOrientationDidChange:(NSNotification *)notification { - UIDeviceOrientation deviceOrientation = [notification.object orientation]; + UIDeviceOrientation deviceOrientation = [[UIDevice currentDevice] orientation]; if (_shouldAutorotate && UIDeviceOrientationIsValidInterfaceOrientation(deviceOrientation)) { if (UIDeviceOrientationIsPortrait(deviceOrientation)) {