Transform/redraw view after pinch zoom on x-axis

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-04-08T16:58:10Z Indexed on 2010/04/08 17:03 UTC
Read the original article Hit count: 361

Filed under:
|
|
|

My setup.

UIScrollView (scrollView) 
- UIView (contentView)
- UIView (subView)

I have managed to do so I can zoom contentView only on the x-axis. The problem is that subView is containing a graph. When contentView is zoomed and transformed the graph gets unsharp and distorded since the scaling only effect the x-axis.

What I need help with is to somehow redraw the contentView after I'm done with the zooming without distorting the graph. Is it possible to transform the contentView so that the graph stays sharp even if you only zoom in the x-axis or redraw the content in the zoomed/stretched view somehow?

I have tried the solution in this thread link but haven't succeeded to get it running.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c