Skip to content

Commit 69a3c9e

Browse files
committed
Check foundation version bump
1 parent 9ed60e9 commit 69a3c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RESideMenu/RESideMenu.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ - (void)__showLeftMenuViewController
272272
self.contentViewContainer.transform = CGAffineTransformIdentity;
273273
}
274274

275-
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
275+
if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1) {
276276
self.contentViewContainer.center = CGPointMake((UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) ? self.contentViewInLandscapeOffsetCenterX + CGRectGetWidth(self.view.frame) : self.contentViewInPortraitOffsetCenterX + CGRectGetWidth(self.view.frame)), self.contentViewContainer.center.y);
277277
} else {
278278
self.contentViewContainer.center = CGPointMake((UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) ? self.contentViewInLandscapeOffsetCenterX + CGRectGetHeight(self.view.frame) : self.contentViewInPortraitOffsetCenterX + CGRectGetWidth(self.view.frame)), self.contentViewContainer.center.y);
@@ -769,7 +769,7 @@ - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInte
769769

770770
CGPoint center;
771771
if (self.leftMenuVisible) {
772-
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
772+
if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1) {
773773
center = CGPointMake((UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation) ? self.contentViewInLandscapeOffsetCenterX + CGRectGetWidth(self.view.frame) : self.contentViewInPortraitOffsetCenterX + CGRectGetWidth(self.view.frame)), self.contentViewContainer.center.y);
774774
} else {
775775
center = CGPointMake((UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation) ? self.contentViewInLandscapeOffsetCenterX + CGRectGetHeight(self.view.frame) : self.contentViewInPortraitOffsetCenterX + CGRectGetWidth(self.view.frame)), self.contentViewContainer.center.y);

0 commit comments

Comments
 (0)