Bug 21332 - Storyboard designer is missing ability to create a custom exit segue on a ViewController
Summary: Storyboard designer is missing ability to create a custom exit segue on a Vie...
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: Vinicius Jarina
URL:
Depends on:
Blocks:
 
Reported: 2014-07-15 08:47 UTC by Roger Peters
Modified: 2015-08-28 17:27 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:47:46 UTC
Once you set an action with the following signature for a custom segue action in the VC:
        [Action ("returned:")]
        void returned (MonoTouch.UIKit.UIStoryboardSegue segue)
        {
            Console.WriteLine("HomeViewController.returned() called");
        }

.. you can then use XCode's storyboard editor to drag from the VC icon to the Exit icon to create an exit segue that is not associated with a button on the view. You can see an image that illustrates this ability here:
http://www.bencz.com/images/segues/create_unwind.png

It is not currently possible to do this in the Xamarin Studio storyboard editor. This is related to the limitation described in bug #21331 as well. You can also download a sample project from the link below. If you open the storyboard in XCode you'll see the ability to drag drop as shown in the image above.

http://smartypantscoding.com/using-custom-unwind-segues-in-xamarin-ios
Comment 1 Rob DeRosa 2014-09-03 15:17:45 UTC
This is also possible in XCode using the document outline but missing from Xamarin Studio
Comment 2 Udham Singh 2014-11-06 11:19:14 UTC
I have checked this issue with the help of instructions provided in bug description and observed the same behaviour. I have observed that when we open storyboard file in XCode's editor then we are able to drag from the VC icon to the Exit icon to create an exit segue but in case XS iOS designer we are not able to drag from the VC icon to the Exit icon to create an exit segue.

Screencast : http://www.screencast.com/t/2gb6Qg7T

Note : To check this issue I have use the project provided in bug description.

Environment Info :

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.iOS ===

Version: 8.4.0.16 (Business Edition)
Hash: 80e9ff7
Branch: 
Build date: 2014-10-22 15:09:12-0400

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.9.4
Darwin Xamarin76s-Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 Alan McGovern 2015-08-28 17:27:21 UTC
We support this now
Comment 4 Alan McGovern 2015-08-28 17:27:37 UTC
developer.xamarin.com/recipes/ios/general/storyboard/unwind_segue/