Do the same as you are already doing. In view 1 you are sending the object to view 2 (DetailViewController2
). In DetailViewController2
, in the prepareForSegue
method, you do the same:
if ([segue.identifier isEqualToString:@"sendi"])
{
DetailImageViewController *detailImageViewController = [segue destinationViewController];
detailImageViewController.somePropertyName = self.objecteditem;
}