diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-23 18:20:02 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-23 18:20:02 -0800 |
commit | 7fd48a8259a9b8db3a9b55340cc86d79885e550b (patch) | |
tree | f3b08ecf98973d9810e2532c94da84abb9c5edf0 /MobileCydia.mm | |
parent | 8c5b623ff2633be8f4e7223a689c1f09d4c777f7 (diff) |
Actually fixed the dropbar adjustments on iOS 7.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index a78e6b0..27d397f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7104,7 +7104,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi else if (kCFCoreFoundationVersionNumber < 800) return [self _transitionView]; else - return [[self _transitionView] superview]; + return [[[self _transitionView] superview] superview]; } - (void) dropBar:(BOOL)animated { @@ -7122,7 +7122,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi else if (kCFCoreFoundationVersionNumber < 800) barframe.origin.y = CYStatusBarHeight(); else - barframe.origin.y = -barframe.size.height; + barframe.origin.y = -barframe.size.height + CYStatusBarHeight(); [refreshbar_ setFrame:barframe]; @@ -7130,8 +7130,11 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [UIView beginAnimations:nil context:NULL]; CGRect viewframe = [transition frame]; - viewframe.origin.y += barframe.size.height; - viewframe.size.height -= barframe.size.height; + float adjust(barframe.size.height); + if (kCFCoreFoundationVersionNumber >= 800) + adjust -= CYStatusBarHeight(); + viewframe.origin.y += adjust; + viewframe.size.height -= adjust; [transition setFrame:viewframe]; if (animated) @@ -7156,8 +7159,11 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [UIView beginAnimations:nil context:NULL]; CGRect viewframe = [transition frame]; - viewframe.origin.y -= barframe.size.height; - viewframe.size.height += barframe.size.height; + float adjust(barframe.size.height); + if (kCFCoreFoundationVersionNumber >= 800) + adjust -= CYStatusBarHeight(); + viewframe.origin.y -= adjust; + viewframe.size.height += adjust; [transition setFrame:viewframe]; if (animated) |