global extension code purge

This commit is contained in:
Chris Li 2016-11-26 20:21:19 -05:00
parent 72e22c1ff2
commit db6a739f5f
4 changed files with 6 additions and 25 deletions

View File

@ -13,7 +13,9 @@ class Controllers {
// MARK: - Main
class var main: MainController {
return (UIApplication.appDelegate.window?.rootViewController as! UINavigationController).topViewController as! MainController
let appDelegate = UIApplication.shared.delegate as! AppDelegate
let nav = appDelegate.window?.rootViewController as! UINavigationController
return nav.topViewController as! MainController
}
// MARK: - Bookmark

View File

@ -49,7 +49,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.8.3350</string>
<string>1.8.3357</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View File

@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.8.3350</string>
<string>1.8.3357</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>

View File

@ -7,28 +7,7 @@
//
import Foundation
#if os(iOS) || os(watchOS) || os(tvOS)
import UIKit
#elseif os(OSX)
import AppKit
#endif
// MARK: - App Delegate Accessor
#if os(iOS) || os(watchOS) || os(tvOS)
extension UIApplication {
class var appDelegate: AppDelegate {
return UIApplication.shared.delegate as! AppDelegate
}
}
#elseif os(OSX)
extension NSApplication {
class var appDelegate: AppDelegate {
return NSApplication.sharedApplication().delegate as! AppDelegate
}
}
#endif
import UIKit
extension Locale {
static var preferredLangCodes: [String] {