From: Jay Freeman (saurik) Date: Mon, 21 Mar 2011 12:39:53 +0000 (-0700) Subject: Restore setView:UIView indirection, required for keyboard resize. :( X-Git-Tag: v1.1.0%rc1~46 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/b62b37883b6c0e81655190c7511cf8bf0fb32fee Restore setView:UIView indirection, required for keyboard resize. :( --- diff --git a/MobileCydia.mm b/MobileCydia.mm index c6d98813..d999b425 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6225,9 +6225,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) loadView { - list_ = [[[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] style:UITableViewStylePlain] autorelease]; + UIView *view([[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]); + [view setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; + [self setView:view]; + + list_ = [[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain] autorelease]; [list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth]; - [self setView:list_]; + [view addSubview:list_]; // XXX: is 20 the most optimal number here? [list_ setSectionIndexMinimumDisplayRowCount:20];