jjzjj

changeLabel

全部标签

swift - 在 ViewController 和 ContainerViewController 之间传递数据

我正在开发一个应用程序,需要在View和containerView之间传递数据。我需要从两个View发送和接收数据。让我更好地解释一下:我可以通过协议(protocol)更改LabelMaster(触摸容器按钮),但我不能更改标签容器(触摸主按钮)。发生的事情是Master通过以下方式与容器连接。但是没有一个followContainer链接到Master。我尝试添加butsegue到,但它成功了。主视图Controller:importUIKitprotocolMasterToContainer{funcchangeLabel(text:String)}classMaster:UIV

swift - 在 ViewController 和 ContainerViewController 之间传递数据

我正在开发一个应用程序,需要在View和containerView之间传递数据。我需要从两个View发送和接收数据。让我更好地解释一下:我可以通过协议(protocol)更改LabelMaster(触摸容器按钮),但我不能更改标签容器(触摸主按钮)。发生的事情是Master通过以下方式与容器连接。但是没有一个followContainer链接到Master。我尝试添加butsegue到,但它成功了。主视图Controller:importUIKitprotocolMasterToContainer{funcchangeLabel(text:String)}classMaster:UIV