반응형

기본적으로 UITextField 에서 특수문자인 hyphen(-)을 연속 입력하게 되면 en dash(–) 로 변경됩니다. 
이는 자동으로 글자가 되는 기능 때문인데요. ex) 마침표(.) 3개 입력시 말줄임표()로 변경

이를 막기 위해서는 smartDashesType 값을 .no로 설정해주면 됩니다. (iOS 11+)

textField.smartDashesType = .no

참고 : https://developer.apple.com/documentation/uikit/uitextinputtraits/2866013-smartdashestype

반응형
Posted by 까칠코더
,