Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Labels and title not appearing on iOS Simulator

$
0
0

Hi,

I have a really simple view (just starting out with Xamarin forms), the code is below. On Android and Windows phone it displays correctly, however on the iOS Simulator on my mac it just displays the button, not title or label.

Also two quick Q's before the code:

  1. Should we always use Navigation.PushAsync when a view's being requested, even if it's the first time?
  2. Why are build times sooooooo slow? I have a beefy PC (i7-4930k, 16GB RAM etc...) and builds are just horrendous... it's putting me off a bit... Just saving a whitespace change, makes builds start all over again...

public Index()
{
Title = "Login Early to Primary Essence";

        Label lblTitle = new Label { Text = "Login", Font = Font.SystemFontOfSize(NamedSize.Large) };
        Button btnLogin = new Button { Text = "Click me." };

        Content = new StackLayout
        {
            Children =
            {
                lblTitle,
                btnLogin
            }
        };

        //Navigation.PushAsync(this);
    }

Many thanks for any help


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>