Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 472
Rajesh Avatar asked Dec 31 '09 13:12

Rajesh


2 Answers

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

-setAutoCorrectionType:

and pass UITextAutocorrectionTypeNo

like image 108
Jasarien Avatar answered Oct 11 '22 04:10

Jasarien


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

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

like image 29
epatel Avatar answered Oct 11 '22 05:10

epatel