Interact with a view controller from another view controller

后端 未结 2 700
一整个雨季
一整个雨季 2021-01-22 20:57

I want my view controller to check if there is an image on another view controller when i click a button. But as of now even there is an image the simulator does not execute the

2条回答
  •  没有蜡笔的小新
    2021-01-22 21:21

    did you define both

    @property(nonatomic, retain) UIImage * image;  // (or UIImageView *)
    

    in your .h and

    @synthesize image;
    

    in your .m ?

提交回复
热议问题