Presenting a viewController on SKScene

后端 未结 2 601
梦毁少年i
梦毁少年i 2020-12-16 05:52

I am trying to present UIActivityViewController on an SkView but xcode gives me this error :

No visible @interface for \'Ga

2条回答
  •  有刺的猬
    2020-12-16 06:43

    IIRC the first SKScene that you create is inside an SKView.

    This SKView is inside a UIViewController.

    You can use properties or delegation or whatever you like to access methods on the UIViewController through the SKView from the SKScene. Or even use a notification.

    Then on the UIViewController you can present the new view controller with no problems.

提交回复
热议问题