Detecting shake gesture by multiple view controllers <p>I need to detect shake gesture in iOS. I have done the usual stuff and it works perfectly fine. The thing is I have multiple view controllers in <code>UITabBarController</code> and I wish each of them to detect the shake gesture. </p> <p>When shaking in any of the view controller , I get switched to a particular tab. The problem is if I shake in one view controller and try to shake in other controller the gesture is not detected unless some action is performed in that controller.</p> <p>I know I need to set <code>becomeFirstResponder</code> but I need to know how can this property be set to the current tab of the <code>UITabBarController</code> so that the shake gesture is recognised by all tabs.</p>