Any one have exact solution for passing image from one view to other view when using popview controller in iPhone.
Please give me some guidelines for this problem. Thanks.
Any one have exact solution for passing image from one view to other view when using popview controller in iPhone.
Please give me some guidelines for this problem. Thanks.
Using Protocol Delegate method use the image, or else assign your image to another controller image object and use it.
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.