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

Picker w/ iOS 8.1 crash with code 0x00

$
0
0

My code is very simple - I am attempting to add a Picker() to the StackLayout. The app crashes immediately without any exception - so it took me a while to debug what was causing it to crash. After commenting the other 5 controls, I narrowed it down to the Picker. When the Picker is not added to the StackLayout, I do not experience the crash.

// Doesn't work

Picker picker = new Picker();
picker.HorizontalOptions = LayoutOptions.FillAndExpand;
Children.Add(picker);

// Does work

Picker picker = new Picker();
picker.HorizontalOptions = LayoutOptions.FillAndExpand;

// Children.Add(picker);

Thanks in advance, and happy new year to those overseas


Viewing all articles
Browse latest Browse all 58056

Trending Articles