Tabbed Page icons are case sensitive
Posted on July 17, 2014
I have just spend most of an hour to make the app I’m currently doing work on my devices. I have been working in the simulator during development, and everything has been great, but when i deployed to my iPhone, the app just stopped working. I didn’t close down, but it didn’t load completely either.
I basically started to comment out code, and finally, I got around to a tab page, that i create at startup:
public classFrontPage : TabbedPage
{
public FrontPage()
{
this.Title = “Lean Priority”;
Children.Add(new ProjectOverviewPage());
Children.Add(new ContentPage() { Title = “Help”, Icon = “help.png”, Content = new Label() { Text = “Foo” } });
Children.Add(new AboutPage());
}
}
The problem turned out to be the icons. I entered Icon=”help.png”, but the icon in the resource folder was named “Help.png” – with a capital “H”. Apparently the simulator doesn’t care about casing, where the real devices do. The problem is, that you don’t get any errors when the icons can’t be loaded. The app just stops loading.