diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-25 15:06:42 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:20 -0800 |
commit | 65ea9562dea67390b0d4a1d8d6ed2f1593d4418b (patch) | |
tree | 966c952e6c7c7d55795e788b8e8ac61367bf59b3 /MobileCydia.mm | |
parent | 740b712de9e2b43b52af962810595303c935c688 (diff) |
Use a real grouped table view to back our webviews.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 0b4b56e..3626b88 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4516,16 +4516,12 @@ static NSString *Warning_; } return self; } -// XXX: factor this out somewhere -- (UIColor *) groupTableViewBackgroundColor { - UIDevice *device([UIDevice currentDevice]); - bool iPad([device respondsToSelector:@selector(userInterfaceIdiom)] && [device userInterfaceIdiom] == UIUserInterfaceIdiomPad); - return iPad ? [UIColor colorWithRed:0.821 green:0.834 blue:0.860 alpha:1] : [UIColor groupTableViewBackgroundColor]; -} - - (void) loadView { [self setView:[[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]]; - [[self view] setBackgroundColor:[self groupTableViewBackgroundColor]]; + + UITableView *table([[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped] autorelease]); + [table setAutoresizingMask:UIViewAutoresizingFlexibleBoth]; + [[self view] addSubview:table]; indicator_ = [[[CYLoadingIndicator alloc] initWithFrame:[[self view] bounds]] autorelease]; [indicator_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth]; |