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
精彩评论