Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What's the difference between a uitextview and a uiscrollview?


Asked by Curtis Padilla on Dec 13, 2021 FAQ



Unlike its name, a UITextView is not just a text view. You can edit it, type in it, scroll it. A UITextView is a multiline text region. It has a built-in UIScrollView. By default a UITextView is editable. To disabled editing you need to set the property isEditable as false.
Additionally,
This is the distance that the content view is inset from the enclosing scroll view. Run the app and now the content should be centered when zoomed down to the minimum scale. The basic UIScrollView class supports the pinch-in and pinch-out gestures with a little amount of additional code.
In fact, In iOS, scroll views are used to view content that won’t fit entirely on the screen. Scroll views have two main purposes: A common control used in iOS apps – UITableView – is a subclass of UIScrollView and provides a great way to view content that is larger than the screen.
And,
The basic UIScrollView class supports the pinch-in and pinch-out gestures with a little amount of additional code. But supporting a richer zooming experience using tap detection will rquire more work.
In this manner,
UIScrollView is the superclass of several UIKit classes including UITableView and UITextView. The central notion of a UIScrollView object (or, simply, a scroll view) is that it is a view whose origin is adjustable over the content view.