iphone - Updating zoomScale of UIScrollView -


I created an animation to zoom in or out in a UICroll view, but my problem is that zoomscale is not updated For example, I'm zooming out to my UIUUU using my animation inside my UIISUIUI, but when I zoom in while expanding the zoom in, the UIView will automatically change to its large size or Shape Will zoom in I saw that my zoom scale is not updating and still is in scale 1.0. Then I update my zoomscale after the animation, but the problem is zoomed out, UIView will automatically move to the top of the screen. Can I update the zoomScale property of UIScrollView?

Thank you.

Did you implement the ViewForZoomingInScrollView function? This function of your Scroll View Representative is called when you change zoomscale. This gives the view, when the scale of your scrollwall is changed, then it should be re-entered. Normally you return only the scrollView given in the parameter:

  - (UIView *) viewForZoomingInScrollView: (UIScrollView *) scrollView; {Return scrollView.childView; }  

Do not forget to set a representative in your scrollView: yourScrollView.delegate = self;


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -