I want to add UIControls to a UIScrollView, eg.
UIControl *couponView = [[UIControl alloc] initWithFrame:CGRectMake(drawX,drawY,couponWidth,couponHeight)];
couponView.backgroundColor = [UIColor redColor];
[[scrollView contentView] addSubview:couponView]; //may not respond
[scrollview.contentView addSubview:couponView]; //not a member
I also want to set the frame of the contentView based on how many UIControls I'm adding. I'm thinking I'll set the frame far in the Y direction off screen, and the UIScrollView will scroll the off-screen parts into visibility whenever the user scrolls.
I didn't see a contentView property in UIScrollView.. how can I access the contentView?