Bug 20888 - Replace Segue from DetailViewController to another View Controller cause the new View Controller to open in the Master pane.
Summary: Replace Segue from DetailViewController to another View Controller cause the ...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-25 16:59 UTC by Jon Goldberger [MSFT]
Modified: 2015-08-31 21:47 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 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 NOT_REPRODUCIBLE

Description Jon Goldberger [MSFT] 2014-06-25 16:59:12 UTC
Steps to reproduce:

1. Open Visual Studio and create a new iPad StoryBoard->Master/Detail project
2. Open the Storyboard file in iOS Designer.
3. Add a button to the Detail View Controller
4. Add a new UIViewController to the canvas.
5. Set the background color of the new View Controller to something other than white so you can easily see the bounds when it is presented on the simulator/device.
6. Ctl-drag from the button you added in 3 to the new View Controller and select Replace for the Segue.
7. Run app

Expected result: Clicking on the button in the detail pane will launch the new colored View Controller in the detail pane.

Actual result: Colored View Controller is launched into the Master pane. 

To workaround:
1. Open the storyboard again and select the Replace Segue that was added in 6
2. Open the Properties for the Segue.
3. Change the Destination to Master Split and then immediately change it back to Detail Split
4. Run app

Expected result: Clicking on the button in the detail pane will launch the new colored View Controller in the detail pane.

Actual result: As expected. 

This leads me to believe that the default value for the Destination is not correctly set, but is set correctly when set explicitly. 


My version information:

Microsoft Visual Studio Ultimate 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451031-02209
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2013   06181-004-0451031-02209
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU   06181-004-0451031-02209
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013   06181-004-0451031-02209
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451031-02209
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451031-02209
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451031-02209
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451031-02209
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451031-02209
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06181-004-0451031-02209
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.1.20409.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

NuGet Package Manager   2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SAPReferenceManager   1.0
Manages References to Shared Projects

SQL Server Data Tools   12.0.40403.0
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools   1.1
Windows Azure Mobile Services Tools

Windows Azure Tools   2.3
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.3.20320.1602

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.0.56.0 (269d269fda3ba21b344e49a4d6a048dc1539e7a4)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.Android   4.12.5.2 (419335316003113183185da56b888fffe0875ae2)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   3.0.56.0 (269d269fda3ba21b344e49a4d6a048dc1539e7a4)
Visual Studio extension to enable development for Xamarin.iOS
Comment 3 Jon Goldberger [MSFT] 2014-06-25 17:24:45 UTC
A but of further investigation reveals the following:

The new View controller is not actually replacing the master View Controller, but is placing it _over_ the Master View Controller when in Landscape mode. The Repro steps in the bug description were perfumed with the iPad simulator in Landscape mode. If you do those steps with the iPad simulator in Portrait orientation initially, you don't see the new colored view controller until you rotate the iPad into Landscape, at which time the colored view controller obscures the Master View Controller. 

Steps to Repro the above:

1. Open the storyboard again. 
2. Change the Destination of the replace Segue to Master Split. 
3. Launch the app and rotate the iPad simulator to Portrait.
4. Press the button to initiate the Seque.
5. Observe that you do not see the new view controller at all and that the Master button that would normally display the Master View Controller in a Popover is gone.
6. Swipe from the left to open the Master View Controller.
7. Master View Controller shows the original Master View Controller With the Table View.
8. Rotate to Landscape.

Expected result: Master View Controller with the Table View should show in the Master pane on the left.

Actual result: Colored view controller is displayed in the Master pane on the left.
Comment 4 Jon Goldberger [MSFT] 2014-06-25 17:25:46 UTC
s/perfumed/performed/
DYAC!
Comment 5 Udham Singh 2014-06-26 05:43:13 UTC
I have checked this issue and observed the same behavior mentioned in bug description. To reproduce this issue I have followed the steps/instructions mentioned in bug description and comment 3. 

Please refer the screencast : http://screencast.com/t/xkrmQyhzf52

Environment Info : 

Windows 8.1
VS 2013
Xamarin 3.0.56.0
Xamarin.iOS Build Host 7.2.4.4
Comment 6 Alan McGovern 2015-08-31 10:58:48 UTC
This works just fine for me when i run this sequence of events manually, i.e. if i create an empty storyboard, add a splitviewcontroller and set up these segues.

As such this sounds like a template bug in VS. Does this still happen with the latest template projects in VS?
Comment 7 Jon Goldberger [MSFT] 2015-08-31 17:13:09 UTC
I just tested this on Windows 10/VS 2015 and the issue did not occur, so this seems to be fixed.
Comment 8 Alan McGovern 2015-08-31 21:47:03 UTC
Alrighty. Thanks!