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?

Answers


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

-setAutoCorrectionType:

and pass UITextAutocorrectionTypeNo


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

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


Need Your Help

MySQL ORDER BY rand(), name ASC

php mysql database select random

I would like to take a database of say, 1000 users and select 20 random ones (ORDER BY rand(),LIMIT 20) then order the resulting set by the names. I came up with the following query which is not wo...