【发布时间】:2015-10-23 12:33:52
【问题描述】:
当触发 BackgroundClicked 时,返回前一个视图控制器并以编程方式单击加载时前一个视图控制器上的按钮。但前提是从子视图控制器中单击了 BackgroundClicked
例如
//this button is on child controller
@IBAction func BackgroundClicked(sender: AnyObject)
{
self.navigationController?.popToRootViewControllerAnimated(true)
// when im on the root controller click button abc
// button abc resides on the root controller
}
只有在单击 BackgroundClicked 时,我才希望按钮 abc 在根控制器的负载上单击。我不确定该怎么做,或者是否有可能
【问题讨论】: