Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off Spell checker in a iPhone App

Developing a iPhone application - where I want the 'Spell checker' functionality to be turned off when the application starts, firstly, is this possible? if yes, can someone help me with the code for the same?

Secondly, if this is possible, and what would happen, if the user pauses my application, and goes and starts another application, for instance sending a SMS where by default the iOS turns on the spell checker - when the user would switch back to my app, would the spell checker be turned on then?

like image 434
Preet Chandhoke Avatar asked Feb 24 '11 18:02

Preet Chandhoke


People also ask

How do I turn off autocorrect on apps?

To turn off autocorrect on an Android device, you'll need to head to the Settings app and open the "Language and input" menu. Once you turn off autocorrect, your Android won't change what you type or offer predictive text options. After turning off autocorrect, you can turn it back on at any time.

How do I turn off spell check on Apple?

To turn off autocorrection for a specific app, open the app, then choose Edit > Spelling and Grammar > Correct Spelling Automatically (it's off when a checkmark isn't shown). If an app's Edit menu doesn't include a spelling or grammar command, check its preferences or menus to see if it has its own spell checker.

How do I turn off automatic spell check?

Here's how. Click File > Options > Proofing, clear the Check spelling as you type box, and click OK. To turn spell check back on, repeat the process and select the Check spelling as you type box.

How do I turn off spell suggestions on iPhone?

Tap Keyboard Settings, then turn on Predictive. Or go to Settings > General > Keyboard, and turn Predictive on or off.


1 Answers

Whether or not it’s enabled is a property of the text field, not of your application. It’s specified in the UITextInputTraits protocol; to disable autocorrection on a text field, you’d do this:

[myTextField setAutocorrectionType:UITextAutocorrectionTypeNo];
like image 140
Jeff Kelley Avatar answered Oct 12 '22 15:10

Jeff Kelley