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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -