Questions tagged [uitextview]

The UITextView class implements the behavior for a scrollable, multiline text region in iOS. The class supports the display of text using a custom font, color, and alignment and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document.

The UITextView class implements the behavior for a scrollable, multiline text region. The class supports the display of text using custom style information and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document.

Before iOS 6 () the text could only be styled as a whole, since then the view supports finer grained control of the text style through the .attributedText property.

References:

UITextView Class Reference

5806 questions
2
votes
1 answer

After appending a character to the end of my string, an unwanted space is added. How do I remove this?

In the below textView function, I append the '#' character to the end of my string every time the user presses the spacebar. However, an unwanted space comes after the appended character. I've used functions to remove whitespaces at the end of the…
2
votes
1 answer

Text is not appearing when UITextView's content is more?

I don't need to scroll inside a UITextView so disabling a scrolling property of my UITextView. It means UITextView's height is dynamic base on his content. When I added more text in UITextView then text is not appearing. It is working with less…
Urvish Patel
  • 175
  • 1
  • 11
2
votes
1 answer

iOS: set UITextView line spacing from Interface Builder?

Inside of Interface Builder, is it possible to set paragraph style properties like line spacing for a UITextView?
Crashalot
  • 33,605
  • 61
  • 269
  • 439
2
votes
0 answers

Detect the Paste Operation of an Image on UITextView. iOS | Swift 4

I am working on a chat application. I'm able to copy and paste simple string into the textview. I want to detect when the user is trying to paste the image. I don't want to use UITextPasteDelegate as I'm also customising the text styles in…
Peeyush karnwal
  • 622
  • 7
  • 24
2
votes
2 answers

UITextView HTML Content With Custom Font and Size

I've done a lot of search and can't figure out what the correct method to add html content in UITextView. Following is my code. It's not setting correct font type. let htmlProfileString = "