开发者

UIPicker didSelectRow Strange Behavior

I have a 3 component dependent picker and I had it working fine until I noticed a strange behavior. If I spin component 1 and then click down with mounse on Conmponent 2, then wait for Component 1 to stop spinning then let the mouse button up, all without moving the mo开发者_如何转开发use or picker wheel at all... didSelectRow does not get called at all!!! Has anyone else seen this behavior and found a work around???

Thanks


Users will use fingers and not mouse :) You should prefer testing these kinda things on device..

Have you already seen What happens on the device?


It looks like

pickerView:didSelectRow:inComponent: 

only gets called once regardless of how many components there are. Seems missleading to me but if you're spinning more than one component, you'll have to cycle through them, calling

pickerView selectedRowInComponent:

for each, regardless of which component gets passed to the method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜