Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>iOS 7</h2> <p>What you're asking about is possible with new APIs. However, iOS 7 is currently under NDA. Please avoid asking iOS 7 related questions on Stack Overflow until the SDK, Toolchain, and OS go final. Ask this question on the iOS Developer Forums. When iOS 7 becomes public, I'll edit this answer to describe how to do it.</p> <p>Meanwhile (since you're a registered developer), I can point you to a few resources that may be of interest (you may need to sign in to access them).</p> <ul> <li><a href="https://developer.apple.com/wwdc/videos/" rel="nofollow noreferrer">WWDC Videos</a> <ul> <li>The video titled <a href="https://developer.apple.com/wwdc/videos/#201" rel="nofollow noreferrer"><strong>Building User Interfaces for iOS 7</strong></a> introduces the new Segue animations and techniques. The part of interest is around the 18:30 minute mark. </li> <li>The video titled <a href="https://developer.apple.com/wwdc/videos/#218" rel="nofollow noreferrer"><strong>Custom Transitions using View Controllers</strong></a> goes in depth to explain the new custom animated segues and how to use them.</li> </ul></li> <li><a href="https://developer.apple.com/library/prerelease/ios/featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomSegues/CreatingCustomSegues.html" rel="nofollow noreferrer">Creating Custom Segues</a> - Pre-release documentation</li> <li><a href="https://devforums.apple.com/search.jspa?resultTypes=MESSAGE&amp;peopleEnabled=true&amp;q=segue" rel="nofollow noreferrer">Posts about Segue's on the Dev Forums</a> - Just search the Developer Forums</li> </ul> <h2>iOS 5 - 6</h2> <p>Creating custom segues in earlier versions of iOS (5.0 and up) is fairly straightforward, unlike iOS 7 - the animations can't really interact with views within your <code>ViewController</code> and they aren't as dynamic.</p> <p>To setup a custom segue, you'll need to first create a subclass of <a href="/questions/tagged/uistoryboardsegue" class="post-tag" title="show questions tagged &#39;uistoryboardsegue&#39;" rel="tag">uistoryboardsegue</a> (<a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIStoryboardSegue_Class/Reference/Reference.html#//apple_ref/occ/cl/UIStoryboardSegue" rel="nofollow noreferrer">Documentation Here</a>). Override the <code>perform</code> method and add your own animation and drawing code:</p> <pre><code>- (void)perform { //Add your own animation code here, then present the View Controller using that custom animation [[self sourceViewController] presentModalViewController:[self destinationViewController] animated:NO]; } </code></pre> <p>Now that you've subclassed <code>UIStoryboardSegue</code> and created your own animation, you'll need to connect the segue in Interface Builder.</p> <ol> <li>Create the Segue by Control-Dragging from the source view controller to the destination view controller.</li> <li>Select <code>custom</code> from the list <img src="https://i.stack.imgur.com/rMpju.png" alt="Creating a Storyboard Segue"></li> <li><p>Name the Segue by setting its Identifier (this way you can also call the segue using the <code>performSegueWithIdentifier:sender:</code>) method. Then set the Segue Class to the name of your <code>UIStoryboardSegue</code> subclass. </p> <p><img src="https://i.stack.imgur.com/f0Fbb.png" alt="enter image description here"></p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload