From aca4bce5403d01960fb4b95f7b7421d46d9cc150 Mon Sep 17 00:00:00 2001 From: heliang Date: Wed, 22 Sep 2021 15:00:19 +0800 Subject: [PATCH] support Xcode 13 --- Classes/HUD/M13ProgressHUD.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {