UIScrollView does not enlarge UIView after applying affine transform to last

I have been struggling with these problems since two days and have not found a solution yet. My setup is pretty simple: I have a UIScrollView, a UIView inside it, return the latter in viewForZoomingInScrollView and there really is nothing else. In fact, it works as expected. The problem comes when I add this line to the viewDidLoad of my view controller:

viewForZooming.transform = CGAffineTransformMakeRotation(M_PI/2); 

      

Then the scroll view no longer zooms in. Is it because the frame becomes invalid after the view is converted? Is there a workaround?

Thank.

+3
ios uiscrollview zoom transformation


source to share


No one has answered this question yet

Check out similar questions:

458
UIScrollView Scrollable Content Size Ambiguity
55
UIScrollView image / photo viewer with enabled and scalable paging
eleven
UIScrollView is scaled from view named -ve
8
Why does the UIScrollView not scroll completely after adding objects? Using storyboard, ARC and Xcode 4.5.2
3
UIScrollView - using scaling and contentsoffset for CGAffineTransform
1
UIScrollView units DO NOT support correct border sizes when scaling
0
Can't drag objects inside UIScrollView after Zoom to big
0
UIView inside Scrollview scaling issue
0
Scrolling and scaling UIImageView in UIScrollView
0
UIScrollView / UIView Zoom issue



All Articles
Loading...
X
Show
Funny
Dev
Pics