From 39470a3a0d05f4e2ecd50ee42ed81124326a51e1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Mar 2011 04:59:36 -0700 Subject: Use autoresizingMask for base UIViewController views. --- Cydia/LoadingViewController.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Cydia') 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)]; -- cgit v1.2.3