1

How to present view controller from SKScene in Xcode 8 and Swift 3? Someone know a simple way to present the view controller from SKScene?

Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
  • Possible duplicate of [Present another View Controller from SkScene](http://stackoverflow.com/questions/23756865/present-another-view-controller-from-skscene) – ovejka Dec 01 '16 at 15:14
  • I may have this completely wrong... but I think it's views that you present with a viewController, much like an SKView presents Scenes. So what you want... maybe, is to transfer control of SKView to a ViewController? I could be VERY wrong about this. – Confused Dec 01 '16 at 15:41
  • only view controllers can present other view controllers, The idea is to somehow get a message to the view controller so that it can present the new view controller. You can do this through NSNotification, or create a delegate – Knight0fDragon Dec 01 '16 at 20:21
  • Code formatting, extra text removed – Sanoj Kashyap Dec 02 '16 at 14:24
  • Store a reference to your view controller in your scene and use that to present the new view controller. – EmilioPelaez Dec 02 '16 at 14:28

0 Answers0