xCode - 显示其他ViewController的UIButton不会触发ViewDidLoad()

时间:2015-05-05 15:24:59

标签: ios swift uiviewcontroller uibutton

我在尝试使UIButton显示不同的ViewController时遇到了一些问题。在我的'menu'-ViewController上我有两个按钮,都显示'game'-ViewController。奇怪的是,其中一个确实按预期工作,而另一个没有。 它打开ViewController,但第二个按钮没有触发ViewDidLoad()函数。 我尝试删除第一个(工作)按钮,看看是否只有一个能够在ViewController中运行。

我的问题是,是否有任何可能导致此行为的UIButton设置?

提前致谢, Merijn

0 个答案:

没有答案
相关问题