2012-06-07から1日間の記事一覧
シェイクジェスチャーを検知したいUIViewControllerに以下のコードを記述してください。 - (BOOL)canBecomeFirstResponder { return YES; } - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { if(event.type == UIEventTypeMotion &…
シェイクジェスチャーを検知したいUIViewControllerに以下のコードを記述してください。 - (BOOL)canBecomeFirstResponder { return YES; } - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { if(event.type == UIEventTypeMotion &…