0
votes

I want to add a subview to a ScrollView on a single tap. As the content scale of my ScrollView is more than one, the 'Subview' appears to be small. When zoom in of the scroll view happens, I make use of the setTransform function to reverse the zoom effect of the scroll view to make the size of the 'Subview' to appear constant. But the issue is when the Subview is added, it appears to be small. So what needs to be done to make the Subview appear at normal size the moment when it is added?

Thanks.

1
You've said when the issue is, but not what it is!hatfinch
@hatfinch I have edited the question now, hope it is clear now.user862972

1 Answers

1
votes

Presumably you're calling -setTransform: from -scrollViewDidZoom:? Why not just call it the same way immediately after adding the subview?