在網(wǎng)上找到的一個(gè)小例子,我試了一下毅厚,可以幫助理解通知反向傳值
大概就是這個(gè)樣子的:
點(diǎn)擊FirstViewController中的button,跳轉(zhuǎn)到SecondViewController
后點(diǎn)擊SecondViewController中的Button回到FirstViewController中浦箱,并在label中顯示傳出的值吸耿。
1
2
3
主要代碼:
1
2
3
demo小鏈接:小鏈接
在網(wǎng)上找到的一個(gè)小例子,我試了一下毅厚,可以幫助理解通知反向傳值
大概就是這個(gè)樣子的:
點(diǎn)擊FirstViewController中的button,跳轉(zhuǎn)到SecondViewController
后點(diǎn)擊SecondViewController中的Button回到FirstViewController中浦箱,并在label中顯示傳出的值吸耿。
主要代碼:
demo小鏈接:小鏈接