Hello everyone,
In my app I have a scroll view because I am displaying a lot of text as well as pictures... the problem I am having is that one of the pictures I have is too big for the view and shows up very "smushed" together no matter how big I make it. I was wondering if anyone knew how to make it so I can pinch and zoom into that picture and ONLY that picture. I know you need a scroll view to zoom pictures in but is it possible to have a scroll view within a scroll view? BTW I am using Interface Builder for all of this.
Here is the code
Code:
- (void)viewDidLoad {
mainScroller.contentSize = CGSizeMake(320,800);
//[mainScroller setUserInteractionEnabled:YES]; This is what it is set to in IB
[[self mainScroller] setAutoresizesSubviews:YES];
//[[self mainScroller] setMaximumZoomScale:3.0f]; this is what it is set to in IB
//[[self mainScroller] setMinimumZoomScale:1.00f]; This is what it is set to in IB
[[self mainScroller] setDelegate:self];
[scrollView addSubview:mainScroller];
}
-(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{
return mainScroller;
}
Any help would be greatly appreciated!
Thanks!
~iPhonig