I have a UITextView
in my UIScrollView
. The Scrollview
contains images and scrolls horizontally. The Textview
is added as a subview and contains some text. Sometimes the text is quite long, so I want the textview to be scrollable. Here is what I do:
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(260, 490, 280, 86)];
[textView setBackgroundColor:[UIColor colorWithRed:63.0f/255.0f green:154/255.0f blue:201/255.0f alpha:1.0f]];
[textView setTextColor:[UIColor whiteColor]];
[textView setFont:[UIFont fontWithName:@"Helvetica" size:14.0]];
[textView setScrollEnabled:YES];
[textView setUserInteractionEnabled:YES];
[textView setContentSize:CGSizeMake(280, 400)];
Problem is, I cannot scroll.
Is it possible, that the scrollview eats my touches? What would be a clean solution for this?