I was having trouble getting a UIScrollView with multiple UIImageView subzones for proper scaling, so I tried using a UIScrollView with several subordinate UIScrollViews inside it and a UIImageView inside each one. Thus, one UIScrollView can scroll, and the other can only increase.
My question is: how can I access subviews view. I know that usually I can access subviews using [scrollView viewWithTag:tagInt];, for example, but I cannot access subviews subview using [[scrollView viewWithTag:tagInt] viewWithTag:tagInt2];, because viewWithTag returns only one UIView and not all of its subviews.
I could always give each view a unique tag and access them that way, but this seems to be not the most elegant solution.
What is the best way to access subView and then go to subview subView (i.e. access my UIScrollView used for scaling, which is a subview of my main view, and then access the subView UIImageView)?
source
share