开发者

Iphone PickerView inside a ScrollView

If you place a UIPickerView inside a UIScrollView and try to change the pickerview's data by fl开发者_如何学JAVAicking your fingers, the scrollview moves as well. I want a mutex when if you touch the picker view, it completely eats up the event (stops event propogation from affecting the evil scrollview). Any ideas?


you could subclass the pickerview and override the touch methods from UIResponder to not pass the touch along. I am not sure how 'acceptable' that is, but i think it should be fine.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIResponder_Class/Reference/Reference.html%23//apple_ref/occ/cl/UIResponder

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜