バックストーリー
UIScrollView を使用して水平方向にスクロールする画像を持つ iPad アプリを作成しています。これはうまくいきます。画像ごとに、画像を説明する何らかのテキストを含む UIScrollView が必要です。これは垂直スクロールビューになります。垂直の ScrollView は表示されますが、スクロールバーは表示されません。理由はありますか?以下のコード:
CGRect scrollViewFrame = CGRectMake(760, 70, 205, 320);
UIScrollView * contentScrollView = [[UIScrollView alloc]initWithFrame:scrollViewFrame];
[contentView addSubview:contentScrollView];
CGSize scrollViewContentSize = CGSizeMake(205, 100);
[contentScrollView setContentSize:scrollViewContentSize];
[contentScrollView setPagingEnabled:YES];
contentScrollView.delegate = self;
UILabel *titleLable = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 205, 40)];
UILabel *subtitleLable = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, 205, 50)];
UITextView * mainContent = [[UITextView alloc]initWithFrame:CGRectMake(10, 110, 205, 230)];
[titleLable setText:storyTitle];
[subtitleLable setText:storySubTitle];
[contentView setUserInteractionEnabled:YES];
[mainContent setText:storyDescription];
また、Interface Builder を使用してメインの scrollView が既に追加されており、正常に動作しています。なぜこれが起こっているのか誰にもわかりませんか?