0

在 iPhone 中使用 popview 控制器时,任何人都有将图像从一个视图传递到另一个视图的精确解决方案。

请给我一些关于这个问题的指导方针。谢谢。

4

2 回答 2

0

使用协议委托方法使用图像,或者将您的图像分配给另一个控制器图像对象并使用它。

于 2013-02-01T09:40:29.287 回答
0

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.

于 2013-02-01T12:57:09.887 回答