title: Custom Push Segue removes navigation bar and tab bar in story board
body: <p>I have the following defined in a custom Segue, let us call it SegueX:</p>
  
  <pre><code>@interface SegueX : UIStoryboardSegue
  @end
  
  @implementation SegueX
  
  - (void)perform
  {
      CATransition* transition = [CATransition animation];
  
      transition.duration = 0.3;
      transition.type = kCATransitionFade;
  
      [[self.sourceViewController navigationController].view.layer addAnimation:transition forKey:kCATransition];
      [[self.sourceViewController navigationController] pushViewController:[self destinationViewController] animated:NO];
  }
  
  @end
  </code></pre>
  
  <p>In my story board I have just changed a standard Push segue to SegueX. For some reason this will remove my navigation bar and tab bar. Furthermore all UIBarButtonItems I have defined in the story board after the custom segue are hidden at runtime. How do I fix this? I hope it is not meant to be this way...</p>
  
  <p>Before changing to a custom segue</p>
  
  <p><img src="https://i.stack.imgur.com/9ucR5.png" alt="Before changing to a custom segue"></p>
  
  <p>After changing to a custom segue</p>
  
  <p><img src="https://i.stack.imgur.com/KpUDo.png" alt="After changing to a custom segue"></p>
  
  <p><img src="https://i.stack.imgur.com/bycZI.png" alt="enter image description here"></p>
  
  <p>Save this to Main.storyboard</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="aUj-3O-DdX"&gt;
      &lt;dependencies&gt;
          &lt;plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/&gt;
      &lt;/dependencies&gt;
      &lt;scenes&gt;
          &lt;!--Navigation Controller--&gt;
          &lt;scene sceneID="prC-ky-DMz"&gt;
              &lt;objects&gt;
                  &lt;navigationController definesPresentationContext="YES" id="aUj-3O-DdX" sceneMemberID="viewController"&gt;
                      &lt;navigationBar key="navigationBar" contentMode="scaleToFill" id="2Uu-Rm-RXH"&gt;
                          &lt;autoresizingMask key="autoresizingMask"/&gt;
                      &lt;/navigationBar&gt;
                      &lt;toolbar key="toolbar" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="aOK-Kc-Mfz"&gt;
                          &lt;rect key="frame" x="0.0" y="416" width="320" height="44"/&gt;
                          &lt;autoresizingMask key="autoresizingMask"/&gt;
                      &lt;/toolbar&gt;
                      &lt;connections&gt;
                          &lt;segue destination="PDT-yG-B9z" kind="relationship" relationship="rootViewController" id="w27-w2-lcd"/&gt;
                      &lt;/connections&gt;
                  &lt;/navigationController&gt;
                  &lt;placeholder placeholderIdentifier="IBFirstResponder" id="fNx-r3-Dzg" userLabel="First Responder" sceneMemberID="firstResponder"/&gt;
              &lt;/objects&gt;
              &lt;point key="canvasLocation" x="-65" y="-179"/&gt;
          &lt;/scene&gt;
          &lt;!--View Controller--&gt;
          &lt;scene sceneID="kMj-Al-ZjY"&gt;
              &lt;objects&gt;
                  &lt;viewController id="PDT-yG-B9z" sceneMemberID="viewController"&gt;
                      &lt;layoutGuides&gt;
                          &lt;viewControllerLayoutGuide type="top" id="RKt-BS-gn9"/&gt;
                          &lt;viewControllerLayoutGuide type="bottom" id="eFe-fv-bG6"/&gt;
                      &lt;/layoutGuides&gt;
                      &lt;view key="view" contentMode="scaleToFill" id="JbT-x8-qhX"&gt;
                          &lt;rect key="frame" x="0.0" y="0.0" width="320" height="568"/&gt;
                          &lt;autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/&gt;
                          &lt;subviews&gt;
                              &lt;button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fTw-C6-P3N"&gt;
                                  &lt;rect key="frame" x="137" y="269" width="46" height="30"/&gt;
                                  &lt;autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/&gt;
                                  &lt;state key="normal" title="Button"&gt;
                                      &lt;color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/&gt;
                                  &lt;/state&gt;
                                  &lt;connections&gt;
                                      &lt;segue destination="uMi-ds-4FY" kind="custom" id="mPL-yx-hFQ"/&gt;
                                  &lt;/connections&gt;
                              &lt;/button&gt;
                          &lt;/subviews&gt;
                          &lt;color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/&gt;
                      &lt;/view&gt;
                      &lt;navigationItem key="navigationItem" id="Im9-4G-4Ga"/&gt;
                  &lt;/viewController&gt;
                  &lt;placeholder placeholderIdentifier="IBFirstResponder" id="qXF-QN-k3Z" userLabel="First Responder" sceneMemberID="firstResponder"/&gt;
              &lt;/objects&gt;
              &lt;point key="canvasLocation" x="473" y="-177"/&gt;
          &lt;/scene&gt;
          &lt;!--View Controller--&gt;
          &lt;scene sceneID="ca6-vg-B3h"&gt;
              &lt;objects&gt;
                  &lt;viewController id="uMi-ds-4FY" sceneMemberID="viewController"&gt;
                      &lt;layoutGuides&gt;
                          &lt;viewControllerLayoutGuide type="top" id="jd0-A9-WOV"/&gt;
                          &lt;viewControllerLayoutGuide type="bottom" id="5VJ-sS-U1V"/&gt;
                      &lt;/layoutGuides&gt;
                      &lt;view key="view" contentMode="scaleToFill" id="gJp-P2-rUC"&gt;
                          &lt;rect key="frame" x="0.0" y="0.0" width="320" height="568"/&gt;
                          &lt;autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/&gt;
                          &lt;color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/&gt;
                      &lt;/view&gt;
                  &lt;/viewController&gt;
                  &lt;placeholder placeholderIdentifier="IBFirstResponder" id="pih-Kj-ioJ" userLabel="First Responder" sceneMemberID="firstResponder"/&gt;
              &lt;/objects&gt;
              &lt;point key="canvasLocation" x="1003" y="-179"/&gt;
          &lt;/scene&gt;
      &lt;/scenes&gt;
      &lt;simulatedMetricsContainer key="defaultSimulatedMetrics"&gt;
          &lt;simulatedStatusBarMetrics key="statusBar"/&gt;
          &lt;simulatedOrientationMetrics key="orientation"/&gt;
          &lt;simulatedScreenMetrics key="destination" type="retina4"/&gt;
      &lt;/simulatedMetricsContainer&gt;
  &lt;/document&gt;
  </code></pre>