Wednesday, October 28, 2009

iPhone dev Stupidity 92: get content view of UIScrollView

Either by index into subviews:

UIView * content = [[scrollView subviews] objectAtIndex:0];

or by tagging:

UIView * content = [scrollView viewWithTag: CONTENT_VIEW_TAG];

it seems that tag 0 is the scrollview itself.

No comments: