|
@@ -34,6 +34,7 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
|
|
|
@IBOutlet weak var pageControl: UIPageControl!
|
|
|
|
|
|
@objc var delegate: NCIntroViewController?
|
|
|
+ private let appDelegate = UIApplication.shared.delegate as! AppDelegate
|
|
|
private let titles = [NSLocalizedString("_intro_1_title_", comment: ""), NSLocalizedString("_intro_2_title_", comment: ""), NSLocalizedString("_intro_3_title_", comment: ""), NSLocalizedString("_intro_4_title_", comment: "")]
|
|
|
private let images = [UIImage(named: "intro1"), UIImage(named: "intro2"), UIImage(named: "intro3"), UIImage(named: "intro4")]
|
|
|
private var timerAutoScroll: Timer?
|
|
@@ -163,22 +164,20 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
|
|
|
}
|
|
|
|
|
|
@IBAction func login(_ sender: Any) {
|
|
|
- (UIApplication.shared.delegate as! AppDelegate).openLoginView(navigationController, selector: NCBrandGlobal.shared.introLogin, openLoginWeb: false)
|
|
|
+ appDelegate.openLoginView(viewController: navigationController, selector: NCBrandGlobal.shared.introLogin, openLoginWeb: false)
|
|
|
}
|
|
|
|
|
|
@IBAction func signup(_ sender: Any) {
|
|
|
- (UIApplication.shared.delegate as! AppDelegate).openLoginView(navigationController, selector: NCBrandGlobal.shared.introSignup, openLoginWeb: false)
|
|
|
+ appDelegate.openLoginView(viewController: navigationController, selector: NCBrandGlobal.shared.introSignup, openLoginWeb: false)
|
|
|
}
|
|
|
|
|
|
@IBAction func host(_ sender: Any) {
|
|
|
- let appDelegate = UIApplication.shared.delegate as? AppDelegate
|
|
|
-
|
|
|
let browserWebVC = UIStoryboard(name: "NCBrowserWeb", bundle: nil).instantiateInitialViewController() as? NCBrowserWeb
|
|
|
|
|
|
browserWebVC?.urlBase = NCBrandOptions.shared.linkLoginHost
|
|
|
|
|
|
if let browserWebVC = browserWebVC {
|
|
|
- appDelegate?.window.rootViewController?.present(browserWebVC, animated: true)
|
|
|
+ appDelegate.window?.rootViewController?.present(browserWebVC, animated: true)
|
|
|
}
|
|
|
}
|
|
|
}
|