Making UITextView scrollable but NOT editable ?

Discussion in 'iOS Programming' started by deamb, Jul 6, 2008.

  1. macrumors newbie

    Joined:
    Jul 5, 2008
    Location:
    Barcelona
    #1
    Hello all,

    I am writing (trying to ) an iPhone App using the latest SDK...

    I'm only dealing with one view, in which I positionned some UITextView(s) to display some text.

    The lenght of the text is variable, and I would like to make these TextViews scrollable but not editable (ie : if you press your finger on the textView and move it up or down (or left and right), I would like the text to scroll, but if you only tap on the UITextView, I DO NOT want the keyboeard to pop-up !


    any ideas ??
     
  2. thread starter macrumors newbie

    Joined:
    Jul 5, 2008
    Location:
    Barcelona
    #2
    I got it !

    OK, I got it !

    In case someone was curious, is pretty straightforward ! :

    in IB, simply uncheck "editable" in the View attributes, then check "scrolling enabled" and "user interaction enabled"...
     

Share This Page