I have a very simpl开发者_Python百科e View with a text label and an info button that i am displaying in a UIPoOverController. I am explicitly setting setUserInteractionEnabled:YES for my button as well as the view containing the UIButton. However, when i present my UIPopoverController, i am not able to press the button and hence dismiss any action associated to that button.
Any ideas?
Works for me now. I had the button in a view that was a subview of UIViewController's view. The parent view had it's frame set to CGRectZero. For some reason setting CGRectZero made all controls in my subview not user intractable. May be this is a bug in Cocoa, no idea though
精彩评论