Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make UITextView scrollable

This seems so dumb, but I checked all the boxes that I have found as "solutions" to similar problems but nothing is quite working. I have a UITextView box that I want to be scrollable, and my settings are below. Anyone know why it isn't letting me scroll?

Scrollable fail

like image 215
MrHappyAsthma Avatar asked May 10 '12 03:05

MrHappyAsthma


People also ask

Is Uitextview scrollable?

if you always want it to bounce, just check the "Always bounce...", it isn't scrollable but you can move it in each direction.

How do I create a scrollable text field in Swift?

Basic Swift Code for iOS Apps To create a scrollable TextView in iOS we can do it in two ways, one by creating it using the storyboard and other by creating another textView programmatically. A text view is scrollable by default if it has text more than the height of textView and the scrollable property is disabled.

How do you make text scrollable on flutter?

We can make the text scrollable in flutter using these 2 widgets: Expanded Class: A widget that expands a child of a Row, Column, or Flex so that the child fills the available space. SingleChildScrollView Class: A box in which a single widget can be scrolled.


4 Answers

Please also make sure that User Interaction Enabled is checked in .xib file

like image 75
Manish Agrawal Avatar answered Oct 27 '22 14:10

Manish Agrawal


I also had a problem with an unscrollable UITextView, but the other answers here didn't help (granted it was a special case: I only needed to scroll when the app was viewed horizontally).

Just in case anyone has a similar problem and lands here: what did help me was to activate vertical Autosizing (Size Inspector under View) for the textview.

like image 20
newenglander Avatar answered Oct 27 '22 13:10

newenglander


  • Make sure you have text in your UITextView
  • Check to see if the UITextView is enabled (there's a property in settings) - it should be enabled.

Make sure you don't change these settings (or the "Scrolling Enabled" property) in your code.

Good luck !

like image 24
DarkByte Avatar answered Oct 27 '22 13:10

DarkByte


you have to actually have texts inside the textview that overlap it original frame height to make it scrollable

like image 38
Yonathan Jm Avatar answered Oct 27 '22 13:10

Yonathan Jm