在 iPhone 中使用 popview 控制器时,任何人都有将图像从一个视图传递到另一个视图的精确解决方案。
请给我一些关于这个问题的指导方针。谢谢。
在 iPhone 中使用 popview 控制器时,任何人都有将图像从一个视图传递到另一个视图的精确解决方案。
请给我一些关于这个问题的指导方针。谢谢。
使用协议委托方法使用图像,或者将您的图像分配给另一个控制器图像对象并使用它。
suppose your imageview is existingImageView;
.h
@interface SecondController : UIViewController
@property (retain, nonatomic) UIImageView *previousImageView;
.m
@interface SecondController ()
@end
@implementation SecondController @synthasize previousImageView;
Now in firstController while navigating use it like,
SecondController *second = [[SecondController alloc] init];
[self.navigationController pushViewController:second animated:YES];
[second setPreviousImageView:existingImageView];
[photoController release];
After Cropping Image it will reflect to existingImageView.