@IBAction func nextButtonTapped(sender: AnyObject) { var nextView: TheNextViewController = self.storyboard?.instantiateViewControllerWithIdentifier("TheNextViewController") as! TheNextViewController let appdelegate = UIApplication.sharedApplication().delegate as! AppDelegate appdelegate.window!.rootViewController = nextView }
пятница, 9 декабря 2016 г.
Swift: programmatically switch ViewController
To switch between ViewController in Swift, you can use the following code:
macOS Sierra: Use Caps Lock to switch input sources in OS X 10.12
My previous article "Howto switch language by Caps Lock" don't works on macOS Sierra (OS X 10.12).
So, for fix it, please, go and install Karabiner-Elements and after you'll have the same feature like in previous article
So, for fix it, please, go and install Karabiner-Elements and after you'll have the same feature like in previous article
Подписаться на:
Сообщения (Atom)