swift基础页面传值
1、页面属性传值 (一)、单纯代码跳转传值: SecondViewController: threeViewController: (二)、storyboard拉线跳转,页面参数传递: SecondViewController: threeViewController:与上面的相同。 2.通过userDefault存储数据:这个可以多页面间传值 3.协议传值: 反向传值为例:点击返回按钮返回到上一个页面并传递参数。 threeViewController: SecondViewController: 4.闭包(block)传值: 反向传值为例:点击返回按钮返回到上一个页面并传递参数。 threeViewController: SecondViewController: https://www.jianshu.com/p/2b0e3e1e8fa6
