UITextView
onを追加しようとしていUIScrollview
ます。を に追加しUIScrollView
ますUIView
。scrollView の追加は機能しますが、 a へのUIView
追加は機能しません。ポインタはありますか?UITextView
UISCrollView
ありがとう
UIScrollView * contentScrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(300, 400, 250, 250)];
contentScrollView.backgroundColor = [UIColor whiteColor];
UITextView * mainContent = [[UITextView alloc]initWithFrame:CGRectMake(300, 400, 200, 200)];
mainContent.text = @"HELLO";
mainContent.textColor = [UIColor blackColor];
[contentScrollView addSubview:mainContent];
[contentScrollView setUserInteractionEnabled:YES];
[contentView addSubview:contentScrollView];