に1段落を表示したいUITextView
。段落のコンテンツをテキストビューに入れることはできますが、スクロールできませんUITextView
(スクロールしていないため、コンテンツの一部が表示されません)。
私がやろうとしていることは次のとおりです。
CGRect frame = CGRectMake(0, 0, 320, 480);
//allocate view
self.view = [[UIView alloc]initWithFrame:frame];textview = [[UITextView alloc]initWithFrame:CGRectMake(30, 200, 275, 400)];
[textview setFont:[UIFont fontWithName:@"Arial" size:12]];
[textview setScrollEnabled:YES];
[textview setUserInteractionEnabled:NO];
[textview setBackgroundColor:[UIColor clearColor]];
//[textview setText:@"Hi,I'm working fine with this space"];
[self.view addSubview:textview];
この場合、スクロールが有効になります。スクロールしない理由を誰か教えてもらえますか?