xcode - How to programatically switch screens? -


how programmatically change screens? i've got play button in projects main.storyboard , have positioned, i'm going connect play button storyboard gamescene.swift. there way can me?

you should include code button function.

    var storyboard = uistoryboard(name: "main", bundle: nil)     let vc = storyboard.instantiateviewcontrollerwithidentifier("viewcontroller") as! viewcontroller     self.presentviewcontroller(vc, animated: false, completion: nil) 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -