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