I am creating a program in which i am adding an image view on the view and i want after clicking on the image only, another detail view should appear.
NSString *imageName = [NSString stringWithFormat:[dic objectForKey:@"img"]];
UIImage *image = [UIImage imageNamed:imageName];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[self.view addSubView:imageView];
The detail view should appear with the navigation controller. Please help me to solve this problem
Do one thing, add a
UIButtonand set it as custom and add set the image as background of theUIButtonand then you will be able to click on the same and navigate to other view. Hows that?