locked
Xamarin Universal iOS app runs only on iphone RRS feed

  • Question

  • User207839 posted

    I have a Xamarin iOS Universal app with simple forms in a Tabbed Controller (with three Tabs). The IDE am using is Visual Studio 2015 with Xamarin in it.

    In each tab, I have simple UITextFields and the problem now is they appear only in iPhone in the Main.Storyboard. When I select "iPAD" under "View As", all the UI components disappear. (added screenshots of the IDE below)

    Same happens when I run the app on simulators too. The app UI appears on iPhone simulators but not on iPAD simulator.

    I understand that I do not need to explicitly do anything to make this run on an iPAD. Please correct me if am wrong, and help me on what to do to make this work.

    Thanks.

    Wednesday, April 13, 2016 11:05 AM

Answers

  • User125801 posted

    This looks like an issue with the size classes you have for the views in your view controllers. They are likely set to only be installed in Compact Width Regular Height, therefore when you are viewing with the Regular Width Regular Height size class you cannot see them as they are excluded.

    You'll want to set your views to use the Any Width Any Height size class so that they are installed on all size classes.

    https://developer.xamarin.com/guides/ios/platformfeatures/introductiontounifiedstoryboards/#ExcludinganElementfromaSizeClass

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, April 13, 2016 11:34 AM