title: IOS: first tap not working just after loading view
body: <p>I have noted recently that each of my app view has one particular bug/behaviour: if user taps too fast on a UI component when the view appears, the tap is simply ignored. If the user wait a bit before tapping, the tap works.</p>
  
  <p>Storyboard is used for the storyboard, tap gesture recognisers are on UIImageview and using IOS 10.2. </p>
  
  <p>Through different forums i have read about the following options:</p>
  
  <ul>
  <li>nest the call of "present view controllers" in main thread</li>
  <li>Call CFRunLoopWakeup before presentviewcontroller </li>
  <li>Add programatically the TapGesturerecognizer </li>
  <li>change the states of "delays touches end" and "delays touches began"</li>
  <li>disable 3d touch option as similar symptoms was reported to happen in other apps</li>
  </ul>
  
  <p>All above have been unsuccessful.
  Anyone would have met similar issues with the first tap just after the view load?</p>
  
  <p>[Update: I realise this misbehaviour is not specific to this app. Two tests to try:</p>
  
  <ul>
  <li><p>create an xCode Project for iPhone and two view controllers Controller A and Controller B. Two buttons : a button on Controller A view to go to Controller B view and a button Back in Controller B view to go back to Controller A view. Tap to go from View A to B, tap back in B and try immediately to tap on button to go to B. First tap doesn't work either.</p></li>
  <li><p>Go in Settings of the iPhone. Tap On Notifications. Press On Settings to go back to Main Settings screen, Tap immediately back on Notifications. If fast enough, first tap doesn't work. Second tap works or waiting a bit before first tap.</p></li>
  </ul>
  
  <p>Question is now: this looks like a common problem across iPhone apps. Would you know if there would be a common setting somewhere? or is this a common bug for given IOS version ?
  ]</p>
  
  <p>Stephane</p>