ios5 how to pass prepareForSegue: a UIImageView
-
11-11-2019 - |
题
I want to pass my UIImageView that has a image loaded into it from clicking a button to a different UIImageView in a different ViewController.
Here is my code
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// Make sure your segue name in storyboard is the same as this line
if ([[segue identifier] isEqualToString:@"MY_SEGUE"])
{
// Get reference to the destination view controller
ViewControllerName *vc = [segue destinationViewController];
// Pass the current UIImageView to a different UIImageView in a different view controller
[vc setUIImageView:UIImageView2];
}
}
So far when I run this nothing happens when I load the next view. I have no Errors. Do I need to say something in the - (void)viewDidLoad for this to work?
Any tips or suggestions???
Thanks
没有正确的解决方案
不隶属于 StackOverflow