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>2018-09-29 15:42:52 -1000
commitdfe8b17d3030459f6b66cc1736b4e5823d876fb3 (patch)
tree4e650d05281c3864163e0ad95da1c2c9d9538f90 /MobileCydia.mm
parent83f16704a75ab41c2921c3d43ff92873ec183caf (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 1c7e0e4..011fb7c 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6700,6 +6700,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];
@@ -7253,6 +7255,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];
@@ -7960,6 +7964,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];