summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-09-29 15:42:52 -1000
committerSam Bingner <sam@bingner.com>2019-05-27 14:16:11 -1000
commit3916b31c1a7f80bad761770af4cf3002aa474d5e (patch)
treee5a97142ec121de9c5e73d99a3cc78f2176b5328 /MobileCydia.mm
parent2273c2d6719e3ba61fcb484b0ca88671ebde57d3 (diff)
Use new iOS11 UI
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b79a216..ba6afa0 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6696,6 +6696,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
- (void) loadView {
list_ = [[[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
+ if ([list_ respondsToSelector:@selector(setCellLayoutMarginsFollowReadableWidth:)])
+ [list_ setCellLayoutMarginsFollowReadableWidth:NO];
[list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
[list_ setRowHeight:46];
[(UITableView *) list_ setDataSource:self];
@@ -7249,6 +7251,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
[self setView:view];
table_ = [[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped] autorelease];
+ if ([table_ respondsToSelector:@selector(setCellLayoutMarginsFollowReadableWidth:)])
+ [table_ setCellLayoutMarginsFollowReadableWidth:NO];
[table_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
[(UITableView *) table_ setDataSource:self];
[table_ setDelegate:self];
@@ -7956,6 +7960,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
- (void) loadView {
list_ = [[[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] style:UITableViewStylePlain] autorelease];
+ if ([list_ respondsToSelector:@selector(setCellLayoutMarginsFollowReadableWidth:)])
+ [list_ setCellLayoutMarginsFollowReadableWidth:NO];
[list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
[list_ setRowHeight:53];
[(UITableView *) list_ setDataSource:self];