すべてUIViewController
のUIScrollView
コンテンツがスクロールビューに正しく表示されますが、何らかの理由でスクロールできず、すべてのボタンが応答しません。
UIScrollView *_scrollView;
_scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 768, 1024)];
_scrollView.pagingEnabled = YES;
_scrollView.showsHorizontalScrollIndicator = NO;
_scrollView.showsVerticalScrollIndicator = NO;
_scrollView.delegate = self;
_scrollView.backgroundColor = [UIColor redColor];
[self.view addSubview:_scrollView];
NSInteger yPos = 175;
for(Issue *issue in _dataModel.issues)
{
// Create some items and add them to the scrollview
[_scrollView addSubview:tmpItem.view];
yPos += 140;
}
_scrollView.contentSize = CGSizeMake(768, yPos + 50);
contentSize を正しく設定し、別のビューで同じ手法を使用すると、問題なく動作します。ここで何かが足りないかどうかわかりません。