Unhide buttons in VC1 from VC2 using delegate

后端 未结 2 1108
生来不讨喜
生来不讨喜 2021-01-26 15:34

I am trying to Unhide some buttons in a ViewControl using a button in a secondary VC.

On my researches I found out that I have to use a \"Delegation action\".

I

2条回答
  •  半阙折子戏
    2021-01-26 16:08

    Your VC1 should extend UIViewController.

    @interface VC1 : UIViewController 
    

    Make your connections again in the interface builder after that.

提交回复
热议问题