title: Custom UIStoryboardSegue using segueWithIdentifier:source:destination:performHandler:
body: <p>I am trying to use a custom <code>UIStoryboardSegue</code> to implement a transition between two view controllers. I can do this by subclassing <code>UIStoryboardSegue</code>, and then setting this class in IB. However, I was looking at the docs which say:</p>
  
  <blockquote>
    <p>If your segue does not need to store additional information or provide anything other than a perform method, consider using the segueWithIdentifier:source:destination:performHandler: method instead.</p>
  </blockquote>
  
  <p>Implying that you don't need to create the custom subclass, just use the custom performHandler.</p>
  
  <p>I am confused as to where this code should go, and how I go about using it. Do I create the segue as normal in IB and then override that before it is fired (maybe in shouldPerformSegue: or similar). Elsewhere in apple's documentation it says:</p>
  
  <blockquote>
    <p>Your app never creates segue objects directly; they are always created on your behalf by iOS when a segue is triggered</p>
  </blockquote>
  
  <p>So I don't quite understand why they are then saying to instantiate a segue using a class creator method.</p>