How do I add a touch event to a subview of UIView?
I'm trying to build by very first app so excuse my ignorance. I lov开发者_如何学Ce the sample code that Apple put together here called ViewTransitions:
http://developer.apple.com/iphone/library/samplecode/ViewTransitions/Introduction/Intro.html
I want the transition to occur after a user taps the screen once instead of the button like the code does.
Thanks!
Change the inherited class of your xib to be UIControl.
Implement the touch events in your view.
精彩评论