title: How do I set up an UIScreenEdgePanGestureRecognizer using Interface Builder?
body: <p>I can't get <code>UIScreenEdgePanGestureRecognizer</code> to work when I create when I add it to my view controller using Interface Builder, so I'm asking here to establish whether I'm doing something wrong or if there is a bug in Xcode.</p>
  
  <p>Here are the steps to reproduce:</p>
  
  <ul>
  <li>Create a new Xcode project using the "Single View Application" template for iOS.</li>
  <li>Add a <code>UIView</code> to the main view controller by dragging one from the Object Library in Interface Builder</li>
  <li>Add a <code>UIScreenEdgePanGestureRecognizer</code> to the view by dragging one from the Object Library in Interface Builder</li>
  <li>Ensure that the gesture recogniser is enabled and that an edge is selected:</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/MxOPf.png" alt="enter image description here"></p>
  
  <ul>
  <li>Open the assistant editor for the <code>ViewController</code> class and ctrl-drag from the <code>UIScreenEdgePanGestureRecognizer</code> to the <code>ViewController</code>'s implementation block to create a new <code>IBAction</code>
  ` Add a breakpoint in the action's method body to test if the edge pan gesture is being recognized</li>
  </ul>
  
  <p>The resulting code is as follows: </p>
  
  <p><img src="https://i.stack.imgur.com/EwifV.png" alt="Code example"></p>
  
  <p>If I run the application on my device (iPhone 6 running iOS 8.02) the breakpoint does not get hit when I do an edge swipe.</p>
  
  <p>Is there something I'm missing?</p>
  
  <p><strong>UPDATE: this was filed as a bug with Apple (rdar://18582306) on 08-Oct-2014 and still isn't resolved in Xcode 6.4 (6E35b)</strong></p>