简体   繁体   English

Xcode的iPhone的UIPickerView

[英]xcode iphone UIPickerView

My UIPickerView hits the didSelectRow method without actually clicking on the item in the list. 我的UIPickerView命中了didSelectRow方法,而没有实际单击列表中的项目。 All you have to do is flick the list to scroll and when it list stops scrolling it automatically fires this method. 您所要做的就是轻拂列表进行滚动,当列表停止滚动时,它将自动触发此方法。 How can I fix this? 我怎样才能解决这个问题?

As herz said, this is simply how the UIPickerView behaves. 正如herz所说,这就是UIPickerView的行为方式。 You don't have to actually tap on the row to select it. 您实际上不必点击该行即可将其选中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM