开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜