Bug 21331 - Storyboard designer is missing ability to set an ID on an unwind segue
Summary: Storyboard designer is missing ability to set an ID on an unwind segue
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Jose Medrano
URL:
Depends on:
Blocks:
 
Reported: 2014-07-15 08:40 UTC by Roger Peters
Modified: 2015-04-23 18:11 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Roger Peters 2014-07-15 08:40:49 UTC
In XCode's storyboard editor, if you set an action on your VC such that you can drag a button to the Exit icon under the View, you are given the option to set an identifier for the unwind segue that is then passed into 'GetSegueForUnwinding' on your custom navigation view controller. You can use this ID to know which unwind segue to new up and return from 'GetSegueForUnwinding'. Right now the only way to set this is to open the storyboard in XCode.

You can find sample code as well as a YouTube video that shows this limitation at the link below. In the YouTube video, it is covered at the ~12 minute mark:
http://smartypantscoding.com/using-custom-unwind-segues-in-xamarin-ios
https://www.youtube.com/watch?v=vQHB-sIocDY
Comment 1 Jon Goldberger [MSFT] 2014-12-09 16:48:09 UTC
IN addition I don't see a way to create an unwind segue from the View Controller itself to the scene exit. This can be done in Xcode IB by dragging from the View Controller icon to the scene exit and selecting the Unwind action method that you want. This allows having an unwind segue that is not attached to a button but can be called from code with PerformSegue(identifier, sender).

All of this can be done in Xcode IB though: http://screencast.com/t/glGZsTgbdg
Comment 2 Jon Goldberger [MSFT] 2014-12-09 16:53:36 UTC
Another note... the unwind segues show as blank lines in iOS Designer Document Outline. From the sample app in our unwind segue guide:  http://developer.xamarin.com/recipes/ios/general/storyboard/unwind_segue/

http://screencast.com/t/0P5ubbrXu

Selecting that blank line seems to select the UnwindToYellow segue. But nothing shows in the Properties pane for these blank line items in the Document outline. There are actually three more black lines in the Document Outline.
Comment 3 Alex Corrado [MSFT] 2015-04-23 18:11:02 UTC
@Jon, the other issues you mention are other bugs: #21332 and #20724 

The issue of setting the unwind segue ID is fixed by md-addins master cf8612f1e85c01e6ba50cb69a5267134e14c2015