Search code examples
iphonexcodeuipickerviewswipe

Is it possible to make uipicker react only on swipe not on click?


I made UIPicker and with background on it:

(left is normal size of Picker, on the right is mine) enter image description here

The problem is: when the user clicks on TextField - the picker reacts and scrolls down. Is it possible to prevent clicking, and make it to react only on swipe?


Solution

  • Add an another UIView above all view then add your UITextField on this UIView. This will prevent the user interaction conflict.