Rajesh
Rajesh

Reputation: 381

How to Disable autocomplete in UITextView iPhone keyboard

I am doing the application in which I want to disable the autocomplete feature of the keyboard in a textfield. How can I do this?

Upvotes: 38

Views: 20428

Answers (2)

Jasarien
Jasarien

Reputation: 58448

Use epatel's method if you're using IB. If you're not using IB, then try the method

-setAutoCorrectionType:

and pass UITextAutocorrectionTypeNo

Upvotes: 60

epatel
epatel

Reputation: 46051

In InterfaceBuilder you should set the Text Input Trait for Correction to No

alt text http://img.skitch.com/20091231-e5fwp8yhm3jsmjdy2hgk8ewgac.jpg

Upvotes: 47

Related Questions