Apple のドキュメントを読むと、UIEventTypeMotion は Shake をインターセプトする場合にのみ役立つことがわかりました。奇妙に聞こえますが、 a の唯一のサブタイプUIEventTypeMotionはUIEventTypeMotionShake. 他の方法で関数を使用する方法がわかりません- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event..
Apple のドキュメントを読むと、UIEventTypeMotion は Shake をインターセプトする場合にのみ役立つことがわかりました。奇妙に聞こえますが、 a の唯一のサブタイプUIEventTypeMotionはUIEventTypeMotionShake. 他の方法で関数を使用する方法がわかりません- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event..