Bug 47091 - Main.Storyboard changes not reflected in iOS simulator
Summary: Main.Storyboard changes not reflected in iOS simulator
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.2 (iOS 10.1)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-16 12:45 UTC by Kostas
Modified: 2016-11-18 16:40 UTC (History)
2 users (show)

Tags: ios, storyboard, designer
Is this bug a regression?: ---
Last known good build:


Attachments
Example (180.43 KB, image/png)
2016-11-16 12:45 UTC, Kostas
Details


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 ANSWERED

Description Kostas 2016-11-16 12:45:45 UTC
Created attachment 18482 [details]
Example

Elements in the Main.Storyboard visual view are not reflected in the iOS simulator.

Steps:
- Create new solution
- Click on Main.Storyboard
- Set the view for example on iPhone 6
- Add elements from toolbox
- Give elements proper names and ID's (Name: itemLabel, Text: Title)
- Save
- Build and run on iOS Simulator 10.1 (iPhone 6)
- Most of the time the first run works
- Change the position of an element
- Build and run again
- Changes are not reflected

Removing the app on the device, restarting the device or cleaning the build do not work.

Workaround:
Clicking an element and selecting the 'Constraints +' option seems to refresh the project. Building the project after doing this gives a correct representation in the simulator.

Note:
In the attached screenshot, we first put the elements on different places (with constraints on every element), made a build, and afterwards we ordered the elements more nicely, build again and no change.
Comment 1 Alex Soto [MSFT] 2016-11-18 06:03:12 UTC
Hello

This is not really a bug, this will happen if AutoLayout and Size Classes are enabled in your storyboard. You need to configure your elements so they can accommodate to any screen size. You can follow the following guide to learn more about it.

https://developer.xamarin.com/guides/ios/platform_features/introduction_to_Unified_Storyboards/

If you just want to create a single storyboard interface and have a fixed design you just need to disable AutoLayout and Size Classes by selecting the background (gray-ish area) of your designer and uncheck both options from the property panel in XS.

cheers!
Comment 2 Kostas 2016-11-18 16:40:57 UTC
Thanks for the quick reply, this explains a lot.