一个ViewController 中 有一个 Container , 即一个VeiwController1中嵌套了另一个ViewController2.这两个ViewController是同时加载的,这两个同时加载的ViewController之间该如何传值呢,自己试了很多百度的方法,都没有成功,希望能给出一个详细一点的方法,拜托各位大神了。
光阴似箭催人老,日月如移越少年。
Use Delegate to pass values locally, and Notification for large areas
You can try block value transfer
Block passing value or Delegate passing value~
v1 —— V2 uses segue to pass the value, because v2 is a container v2 —— v1 uses block or delegate to pass the value
Use delegate or block
Use Delegate to pass values locally, and Notification for large areas
You can try block value transfer
Block passing value or Delegate passing value~
v1 —— V2 uses segue to pass the value, because v2 is a container
v2 —— v1 uses block or delegate to pass the value
Use delegate or block