Hey guys i have an image view, with a popover controller. There is an array called detailitem which loads images into the image view. All i want is a button to load next image in array into the image view how would i write this? Here is my attempt it doesn t work?
-(IBAction) nextitem {
NSString * imageName = [NSString stringWithFormat:@"%@.jpg",[detailItem objectAtIndex:+1]];
imageview.image = [UIImage imageNamed:imageName];
}