I have tried the following:
contentScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 600, 400)];
[contentScrollView setContentSize:CGSizeMake(600, 400)];
[contentScrollView addSubview:twitterSigninViewController.view];
[contentScrollView setScrollEnabled:YES];
However, this doesn’t scroll. Why is this?
It doesn’t scroll because there’s nothing to scroll. You told it your content size was exactly the same size as the scrollview itself, so it’s already displaying everything. You can set the
alwaysBounceHorizontaloralwaysBounceVerticalproperties if you want it to always bounce when trying to scroll, but that’s about it.