Managed to have the view scaled entirely instead of the image being enlarged. Found out that the cause was in the function:
Code:
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return self.view;
}
Initially, it was returning the image that i had placed instead. So now it works. However, a few problems or modifications i want to make and i do not know yet how to:
**(1)Zoom into point of pinching instead of a default spot that its zooming into, which now is the top left corner of the scrollview.**
(2)Move the view around until the boundaries when the scrollview's scaled.
**(3)When the orientation is changed to landscape, the scrollview is not updated to that landscape view and still thinks it is in portrait mode.**
Thanks for the help
Note: (1) and (3) is "solved". Poses no orientation problems now. A guy just gave me a statement that the pinching in the IPhone simulator will not work according to your boundary according for the pinching. So that may be the reason that it's always like zooming to a corner of the screen size.Not sure about this, though...
(2) still eludes my understanding...