Я хочу передать свой UIImageView, в который загружено изображение, нажав кнопку, в другой UIImageView в другом ViewController.
Вот мой код
- (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];
}
}
До сих пор, когда я запускаю это, ничего не происходит, когда я загружаю следующее представление. У меня нет Ошибок. Нужно ли мне что-то сказать в - (void)viewDidLoad, чтобы это сработало?
Любые советы или предложения???
Спасибо