summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-01-20 01:42:04 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2012-01-20 01:42:04 -0800
commite66a043ba80b1b5526db1fd63e6f88c0e16dfc8d (patch)
treef0362713dda927b34c91afebe7baaee6d5c3ffe1 /MobileCydia.mm
parent8a3b565c801c637fba68ccdd2f1b59a49b741223 (diff)
Fix iPad 5.x segment control positioning bug.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 826b316..6a30cac 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9037,7 +9037,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
UCLocalize("DEVELOPER"),
nil];
segment_ = [[[UISegmentedControl alloc] initWithItems:items] autorelease];
- [segment_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin)];
container_ = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, [[self view] frame].size.width, 44.0f)] autorelease];
[container_ addSubview:segment_];
}
@@ -9082,7 +9081,12 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
- (void) viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
+ [self resizeSegmentedControl];
+}
+- (void) viewDidAppear:(BOOL)animated {
+ [super viewDidAppear:animated];
+ [segment_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin)];
[self resizeSegmentedControl];
}