[Solved] AutoScrolling with zooming image in iphone
– (void)viewDidLoad { [super viewDidLoad]; // 1 UIImage *image = [UIImage imageNamed:@”photo1.png”]; self.imageView = [[UIImageView alloc] initWithImage:image]; self.imageView.frame = (CGRect){.origin=CGPointMake(0.0f, 0.0f), .size=image.size}; [self.scrollView addSubview:self.imageView]; // 2 self.scrollView.contentSize = image.size; } viewDidLoad First, you need to create an image view with the photo1.png image you added to your project and you set the image view frame … Read more