Forum Xamarin.iOS

Can you confirm whether this official Picker Sample works?

HowdyHoHowdyHo USMember ✭✭

Here is the description - https://docs.microsoft.com/en-us/xamarin/ios/user-interface/controls/picker

and here is the sample - https://developer.xamarin.com/samples/monotouch/PickerControl/

The sample compiles successfully and runs, but doesn't show the correct selection inside the display label. It looks like it is displaying values that were previously selected.

Can someone download this sample and run it in their simulator to check whether it works?

If its broken, the XAMARIN folks need to fix it.

Cheers..

Tagged:

Posts

  • JohnHJohnH GBMember ✭✭✭✭✭

    @HowdyHo said:
    Here is the description - https://docs.microsoft.com/en-us/xamarin/ios/user-interface/controls/picker

    and here is the sample - https://developer.xamarin.com/samples/monotouch/PickerControl/

    The sample compiles successfully and runs, but doesn't show the correct selection inside the display label. It looks like it is displaying values that were previously selected.

    Can someone download this sample and run it in their simulator to check whether it works?

    If its broken, the XAMARIN folks need to fix it.

    Cheers..

    Looks to be working fine for me. I select Craig, and the label updates to say this person is Craig, and the numbers update too.

  • HowdyHoHowdyHo USMember ✭✭

    Ok. Thanks. Double checked it. Its most likely the slow simulator. It shows the correct selection if I wait for 52 seconds ( the time varies...). If I make a second selection within those 52 seconds it updates the label with the first selection., but not the second. If I immediately make a third selection within 52 seconds, it immediately shows the second selection, but not the third. Its one selection behind.

    Weird. I will know for sure only when I test it on a real device whether this matters.

    I will accept your answer once I do that test.

    Cheers..

Sign In or Register to comment.