I have a UITextView where I am inserting comma separated values. but when ever I insert any text and gives two or more space after it. It automatically appends the FULL STOP after last text.
Is it due to Phone setting? Even if yes. How can we prevent it?
EDIT To reproduce it.. Enter any word in UITextView and then try to apply two spaces. It will automatically add fullstop at the end of hte word :)
It's because of the setting '.' shortcut in keyboard settings.
Apple describes the behaviour as: "Double tapping the space bar will insert a period followed by a space", and it is indeed an iOS system setting (Settings/General/Keyboard/"." Shortcut).
The user can disable the behaviour, but disabling it by code on a specific UITextView seems difficult - see iPhone: Disable the "double-tap spacebar for ." shortcut?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With