From cf5820f308a7ed6b1d9b4063b56cefeefbd3f66e Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 20 Oct 2014 14:22:33 +0200 Subject: [PATCH] its necessary control the version IOS for rotate ActivityIndicator --- Classes/ShareKit/UI/SHKActivityIndicator.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/ShareKit/UI/SHKActivityIndicator.m b/Classes/ShareKit/UI/SHKActivityIndicator.m index 3ffd25340..58e083d2f 100644 --- a/Classes/ShareKit/UI/SHKActivityIndicator.m +++ b/Classes/ShareKit/UI/SHKActivityIndicator.m @@ -408,7 +408,9 @@ - (void)setProperRotation - (void)setProperRotation:(BOOL)animated { - UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; + + if ((BOOL)([[UIDevice currentDevice].systemVersion floatValue] < 8.0)) { + UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; if (animated) { @@ -430,6 +432,7 @@ - (void)setProperRotation:(BOOL)animated if (animated) [UIView commitAnimations]; + } } @end