PDA

View Full Version : Scrollable UITableView without a scrollable UITextView subview




vegashacker
Aug 26, 2008, 02:10 PM
I have an uneditable, unscrollable UITextView inside a cell of a UITableView. The UITableView scrolls normally--unless the user happens to scroll starting from within the UITextView. I don't want this to be the case.

Note that I don't want the UITextView to be scrollable. I just want it so that no matter where the user starts scrolling from, they can scroll the table.

Thanks!



robbieduncan
Aug 26, 2008, 02:48 PM
Have you tried setting the scrollEnabled property of the UITextView. All UITextViews are subclasses of UIScrollView so you can use all the properties/methods of UIScrollView...

vegashacker
Aug 26, 2008, 03:11 PM
Yes, but that allows for scrolling *within* the text view. I don't want that. I want it such that when I tap and drag from within a text view (or anywhere in the table for that matter), the whole table drags.

vegashacker
Aug 26, 2008, 04:02 PM
I believe I've successfully worked around my issue by using UILabels instead of UITextView. UILabels also can do multiline, and they aren't scrollable, so my scrolling issue went away.

This also seems to have fixed with a problem I was having with some of my UITextViews randomly disappearing.