iOS - Calling App Delegate method from ViewController

前端 未结 13 948
鱼传尺愫
鱼传尺愫 2020-11-28 00:29

What I am trying to do is click a button (that was created in code) and have it call up a different view controller then have it run a function in the new view controller.

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 01:15

    Even if technically feasible, is NOT a good approach. When You say: "The splash screen would have buttons for each room that would allow you to jump to any point on the walk through." So you want to pass through appdelegate to call these controllers via tohc events on buttons?

    This approach does not follow Apple guidelines and has a lot of drawbacks.

提交回复
热议问题