当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Do UIEvent and UIEventTypeMotion intercept shaking gesture only ?

问题描述:

Reading Apple documentationi found that UIEventTypeMotion is useful only to intercept Shake. It sounds weird... but the only subtype on a UIEventTypeMotion is UIEventTypeMotionShake.

I can't understand how to use function - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event in other way..

网友答案:

yep, at the moment the only motion gesture it recognises is shaking. by the looks of it apple will probably be adding more in the future, but we'll have to wait and see :)

分享给朋友:
您可能感兴趣的文章:
随机阅读: