How to disable UIPickerView (Objective-C)?

erastusnjuki picture erastusnjuki · Mar 4, 2010 · Viewed 10.5k times · Source

Is there a way to make the UIPickerView read-only? This means that the user cannot flip through the options.

PS. This is not the same as not passing anything in the didSelectRow method because I only want the user to see that the picker is there and not to touch it.

Answer

kennytm picture kennytm · Mar 4, 2010

Set the picker's userInteractionEnabled to NO.