zoomScale for OS 2.0

Posted by sasayins on Stack Overflow See other posts from Stack Overflow or by sasayins
Published on 2009-12-15T22:34:36Z Indexed on 2010/06/15 12:02 UTC
Read the original article Hit count: 242

Filed under:

Hi,

Is there any alternative or work around so that I can use zoomScale in Iphone OS 2.0. It seems the property is only available in Iphone OS 3.0 or later?

I have two subviews in my UIScrollView and if the first subview reach a specified scale then it will change to the other subview and save the current scale to zoomScale so that the new subview will apply to the previous scale. Like for example in, scrollViewDidEndZooming,

scrollView.zoomScale = scale;

When I run my app in Iphone OS 2.0, it gives me error saying invalid zoomScale invalid selector.

How can I work around this?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone