From b62b37883b6c0e81655190c7511cf8bf0fb32fee Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Mar 2011 05:39:53 -0700 Subject: Restore setView:UIView indirection, required for keyboard resize. :( --- MobileCydia.mm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index c6d9881..d999b42 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]; -- cgit v1.2.3