Link a button in a XIB to a viewcontroller in a Storboard

拟墨画扇 提交于 2019-12-02 15:21:17

问题


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:


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.



来源:https://stackoverflow.com/questions/22738179/link-a-button-in-a-xib-to-a-viewcontroller-in-a-storboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!