【发布时间】:2015-12-09 15:08:40
【问题描述】:
我需要访问和更改另一个视图控制器上存在的按钮的标题。这可能吗?如果是这样,我怎样才能做到这一点?
视图控制器 1:
Class Home: UIViewController
{
@IBOutlet weak var testBTN: UIButton!
}
视图控制器 2:
Home.testBTN // does not work I can't access the button from here
我想我在目标 C 中找到了解决方案,但我不知道如何快速完成此操作 Access IBOutlet from another class
【问题讨论】: