Welcome to the Xamarin.iOS feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.iOS, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

On Android it is possible to set an initial value, on iOS it does not work. Here is the code used on both platforms:


        public void SetSelectedTime(TimeSpan time)

        {

            var h = _hour.IndexOf(time.Hours.ToString());

            var m = _minute.IndexOf($"{time.Minutes:00}");

            var s = _second.IndexOf($"{time.Seconds:00}");

            var selectedIndex = (ObservableCollection<object>)SelectedIndex;

            selectedIndex.Clear();

            selectedIndex.Add(h);

            selectedIndex.Add(m);

            if (ShowSeconds)

                selectedIndex.Add(s);

            //var selectedItem = (ObservableCollection<object>)SelectedItem;

            //selectedItem.Clear();

            //selectedItem.Add(_hour[h]);

            //selectedItem.Add(_minute[m]);

            //if (ShowSeconds)

            //    selectedItem.Add(_second[s]);


        }

Have you a working sample for the SfPicker for Xamarin.iOS?


Best regards

Wilhelm