Мой профиль...

Поиск по этому блогу

пятница, 9 декабря 2016 г.

Swift: programmatically switch ViewController

To switch between ViewController in Swift, you can use the following code:
@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
}

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

Релевантные посты...

Related Posts with Thumbnails