Tuesday, April 21, 2026
HomeiOS Developmentios - UITextView convertes three consecutive dots(...) into smaller dots(u2026)

ios – UITextView convertes three consecutive dots(…) into smaller dots(u2026)

[ad_1]

I’m utilizing UITextView and when person enter three consecutive dots , it will get changed as smaller dots (unicode u2026). How one can keep away from this? I want the precise string which person entered; not the auto corrected string.

Word: I’ve tried setting autoCorrectionType to .no, however no luck.

   let textView = UITextView()
   textView.delegate = self
   textView.translatesAutoresizingMaskIntoConstraints = false
   textView.font = UIFont.preferredFont(forTextStyle: .caption1)

Right here is the delegate technique,

func textViewDidChange(_ textView: UITextView) {
   print("Person entered string: (textView.string)")
}

enter image description here

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments