summaryrefslogtreecommitdiff
path: root/CyteKit
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 /CyteKit
parent2273c2d6719e3ba61fcb484b0ca88671ebde57d3 (diff)
Use new iOS11 UI
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/ListController.mm2
-rw-r--r--CyteKit/ViewController.mm1
-rw-r--r--CyteKit/WebViewController.h2
-rw-r--r--CyteKit/WebViewController.mm1
4 files changed, 6 insertions, 0 deletions
diff --git a/CyteKit/ListController.mm b/CyteKit/ListController.mm
index 7d90045..adc55fd 100644
--- a/CyteKit/ListController.mm
+++ b/CyteKit/ListController.mm
@@ -155,6 +155,8 @@ static CGFloat CYStatusBarHeight() {
[self setView:view];
list_ = [[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain] autorelease];
+ if ([list_ respondsToSelector:@selector(setCellLayoutMarginsFollowReadableWidth:)])
+ [list_ setCellLayoutMarginsFollowReadableWidth:NO];
[list_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[view addSubview:list_];
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index 41e7ea9..72b7593 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -84,6 +84,7 @@
// Load on first appearance. We don't need to set the loaded flag here
// because it is set for us the first time -reloadData is called.
+ self.navigationController.navigationBar.prefersLargeTitles = YES;
if (![self hasLoaded])
[self reloadData];
}
diff --git a/CyteKit/WebViewController.h b/CyteKit/WebViewController.h
index 477828c..f29fd2b 100644
--- a/CyteKit/WebViewController.h
+++ b/CyteKit/WebViewController.h
@@ -22,6 +22,8 @@
#ifndef CyteKit_WebViewController_H
#define CyteKit_WebViewController_H
+#define PACKED_VERSION(major, minor, tiny) ((((major) & 0xffff) << 16) | (((minor) & 0xff) << 8) | ((tiny) & 0xff))
+
#include "CyteKit/ViewController.h"
#include "CyteKit/WebView.h"
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 9d1866a..329d568 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -213,6 +213,7 @@ static _H<NSMutableSet> Diversions_;
+ (void) _initialize {
[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding];
+ [WebPreferences setWebKitLinkTimeVersion:PACKED_VERSION(3453,0,0)];
void *js(NULL);
if (js == NULL)