When I start typing in the default text element in my view manager, it doesn't fit the bottom of the text box. It leaves room for two more lines of text, and then starts scrolling. I want it to start scrolling when I start moving beyond the last line.
I tried everything and I donβt know what can I do? Any ideas?
since UITextView is a subclass of UIScrollView, look at UIScrollView properties like contentInset and others to see if they can create a gap between your frame / borders and the contents inside.
, mahboudz. , , , :
UIEdgeInsets contentInset = notes.contentInset; contentInset.bottom = 10.0; notes.contentInset = contentInset;
- UITextView.
, mahboudz Aaron, , UITextView contentInset , textView:shouldChangeTextInRange:replacementText: UITextViewDelegate
contentInset
textView:shouldChangeTextInRange:replacementText:
UITextViewDelegate
textView.contentInset = UIEdgeInsetsMake(0, 0, 5, 0);
- , , . , UITextView 32 , , , . , ContentInset, :
textView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);