Turn off spell check in the iPhone app

Developing an iPhone application - where do I want the Spell Checker feature to be disabled when the application starts, firstly, is it possible? if so, can someone help me with the code for the same?

Secondly, if this is possible and what happens if a user pauses my application and launches another application, for example, sends an SMS, where by default iOS turns on spell checking - when a user switches back to my application, will spell checking be turned on?

+6
ios iphone cocoa-touch uikit spell-checking
source share
2 answers

Regardless of whether it is included, this is a property of the text field, not your application. It is specified in the UITextInputTraits protocol; To disable auto-correction in the text field, do the following:

[myTextField setAutocorrectionType:UITextAutocorrectionTypeNo]; 
+14
source share

You can do this by checking the attributes when choosing the UITextField or UITextView options

0
source share

All Articles