Link a button in a XIB to a viewcontroller in a St

2020-05-07 10:53发布

I have a XIB viewcontroller with a button in it. I also have a storboard viewcontroller. I would like to know if there is a way to link a button from the xib view controller to the storyboard viewcontroller.

1条回答
甜甜的少女心
2楼-- · 2020-05-07 11:17

Short answer: No, not using interface builder.

You can do it in code though. Once you have the two view controllers instantiated just set the relevant property on your storyboard view controller.

查看更多
登录 后发表回答