in my app I have a view controller with an image view in it. But whenever I go there for some reason I can’t zoom in or zoom out. What can be the problem?
code:
-(void)loadView {
UIImageView *imgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"testImage.png"]];
[self.view addSubview:imgView];
[self.view bringSubviewToFront:imgView];
}
I’ve had the same problem a while ago. I fixed it by adding an
UIScrollViewbetweenself.viewandimgView. Here you can find the code I used. Please note that I was settingimageLinkvariable before pushing that view controller.Hope it helps