diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-11 07:56:12 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-11 07:56:35 -0700 |
commit | 494216be999f303abe8ba9da78bcf4c0235dc1fe (patch) | |
tree | b2912cc0c5f59b43ecce58f10471f4ccac47296e /CyteKit/WebViewController.mm | |
parent | a8185a16edff29773204e2e89f9e55429dc40e76 (diff) |
Bring back the UITableViewStyleGrouped color hack.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r-- | CyteKit/WebViewController.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 374cbef..d392fe8 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -1004,6 +1004,13 @@ float CYScrollViewDecelerationRateNormal; [self setViewportWidth:width_]; + if ([[UIColor groupTableViewBackgroundColor] isEqual:[UIColor clearColor]]) { + UITableView *table([[[UITableView alloc] initWithFrame:[webview_ bounds] style:UITableViewStyleGrouped] autorelease]); + [table setScrollsToTop:NO]; + [webview_ insertSubview:table atIndex:0]; + [table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; + } + [webview_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; ready_ = false; |