为什么从滚动视图中选择的图像不传递给另一个视图控制器?
- (void)tap:(UITapGestureRecognizer *)gesture{
CGPoint touchPoint = [gesture locationInView:_scroller];
int tapOnView = (touchPoint.x / 1024) + 1;
NSString *imageName = [NSString stringWithFormat:@"S%d.png", tapOnView];
UIImage *photo = [UIImage imageNamed:imageName];
NSLog (@"the image selected is %@",imageName);
PaintViewController *paintVC = [self.storyboard instantiateViewControllerWithIdentifier:@"paintViewController"];
[paintVC.tempDrawImage setImage: photo];
[self.navigationController pushViewController:paintVC animated:YES];
}