summaryrefslogtreecommitdiff
path: root/Cydia
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 04:59:36 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 04:59:36 -0700
commit39470a3a0d05f4e2ecd50ee42ed81124326a51e1 (patch)
tree7f07c12b210f9b56386536eacae3c1248094285e /Cydia
parent9256a1ce33a4102a678fe087f072edcc0c0b7b02 (diff)
Use autoresizingMask for base UIViewController views.
Diffstat (limited to 'Cydia')
-rw-r--r--Cydia/LoadingViewController.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cydia/LoadingViewController.mm b/Cydia/LoadingViewController.mm
index 845c350..0463892 100644
--- a/Cydia/LoadingViewController.mm
+++ b/Cydia/LoadingViewController.mm
@@ -42,7 +42,9 @@
@implementation CydiaLoadingViewController
- (void) loadView {
- [self setView:[[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]];
+ UIView *view([[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]);
+ [view setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+ [self setView:view];
UITableView *table([[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped] autorelease]);
[table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];