实现从ViewController到FourthViewController传值的功能
UIViewPassValueDelegate.h:
ViewController.h:
ViewController.m:
[
FourthViewController.h
FourthViewController.m
相关代码如上
在passvalue函数中 打印"123"是可以的,而且dataFromFirst也传到值了,
但是我的想法是点击viewcontroller上的按钮,在FourthViewController上创建一个UIView
就是在passvalue中的创建UIView的部分不行
真机调试 点击按钮后会打印123 但是没有看到我新建的UIView
求各位大神指点迷津