开发者

How do I add a touch event to a subview of UIView?

开发者 https://www.devze.com 2023-01-07 23:26 出处:网络
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:

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

精彩评论

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