How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)

Howdy!

I am writing validation logic for a UITextField which is heavily dependant on its characters' code points. As such, it is undesirable for this text field to make conversions like it does for three consecutive periods ("..." turns into unicode elipsis ). This is the only example I have encountered thus far, but I would like to disable this feature in its entirity for several reasons. Is there a way to achieve this?

Thanks,

smkuehnhold

Answered by Claude31 in 704014022

Did you try:

        textFieldToTest.smartDashesType = .no

It worked for me.

You can also set it in IB.

What do you want to happen when the text cannot fit within the bounds of the UITextField?

Accepted Answer

Did you try:

        textFieldToTest.smartDashesType = .no

It worked for me.

You can also set it in IB.

How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)
 
 
Q