【发布时间】:2012-07-31 13:47:13
【问题描述】:
我在 uiviewcontroller 的 uiScrollview 中有一个 uibutton。当我单击按钮时,我希望能够调用 uiviewcontroller 中的方法。
我的按钮上有以下操作,它调用我的 uiscrollview 中的方法:
[categoryButton addTarget:self action:@selector(categoryButtonWasClicked:) forControlEvents:UIControlEventTouchUpInside];
但这只是在我的 uiscrollview 中调用一个方法(我仍然会保留它)。那么如何调用视图控制器中的方法呢?
感谢您提供的任何帮助。
【问题讨论】:
标签: ios xcode ipad uiviewcontroller uiscrollview