views:

54

answers:

2

I am looking for a way to create a scrollViewIsZooming method that is called while zooming is occuring. Does anyone know of a way to do this?

I am wanting to use it to keep the content centered in the scrollView while zooming. If I use the scrollViewDidEndZooming method, the content snaps back to the center after zooming is finished.

Thanks!

+2  A: 

There's a zooming propriety on UIScrollView :

@property(nonatomic, readonly, getter=isZooming) BOOL zooming

If you check it in each

- (void)scrollViewDidScroll:(UIScrollView *)scrollView

call it should work.

gcamp
A: 

What about viewForZoomingInScrollView:

moshy