summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 05:39:53 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 05:42:10 -0700
commitb62b37883b6c0e81655190c7511cf8bf0fb32fee (patch)
tree20e171c7c10bb779be2d928b2cf31a5ba09add4c
parente8cbebe4629573be37e57211f797131696f0f2de (diff)
Restore setView:UIView indirection, required for keyboard resize. :(
-rw-r--r--MobileCydia.mm8
1 files changed, 6 insertions, 2 deletions
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];