summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-09-30 22:50:49 -1000
committerSam Bingner <sam@bingner.com>2019-05-27 14:24:09 -1000
commit014888d50dcedd8f2a7bcac53bc0ffc1fbb6555f (patch)
tree9078a1592efb2b78c6da195d1ba12bf6717d8809 /CyteKit
parent6f6bdfbcbb3b5dc0a67e28cfe36523e0433ecbeb (diff)
Make Cydia compatible back to iOS5 - unable to support older with this apt version due to newer apt requiring functions provided via libc++ on iOS
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/InterfaceOrientation.h3
-rw-r--r--CyteKit/ViewController.mm3
2 files changed, 4 insertions, 2 deletions
diff --git a/CyteKit/InterfaceOrientation.h b/CyteKit/InterfaceOrientation.h
index eddfaf4..813958e 100644
--- a/CyteKit/InterfaceOrientation.h
+++ b/CyteKit/InterfaceOrientation.h
@@ -22,7 +22,8 @@
- (NSUInteger) supportedInterfaceOrientations {
extern bool IsWildcat_;
extern CGFloat ScreenScale_;
- return IsWildcat_ || ScreenScale_ == 3 ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
+ //return IsWildcat_ || ScreenScale_ == 3 ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
+ return UIInterfaceOrientationMaskAll;
}
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index 72b7593..2e5d5a1 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -84,7 +84,8 @@
// 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 (kCFCoreFoundationVersionNumber >= 1443.00)
+ self.navigationController.navigationBar.prefersLargeTitles = YES;
if (![self hasLoaded])
[self reloadData];
}