Scrollable UITableView without a scrollable UITextView subview

Discussion in 'iOS Programming' started by vegashacker, Aug 26, 2008.

  1. vegashacker macrumors newbie

    Apr 20, 2008
    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.

  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    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...
  3. vegashacker thread starter macrumors newbie

    Apr 20, 2008
    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.
  4. vegashacker thread starter macrumors newbie

    Apr 20, 2008
    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.

Share This Page