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
Post a Comment