public override void ViewDidLoad() { base.ViewDidLoad(); Title = title; tableView = new UITableView(View.Bounds); tableView.BackgroundColor = Colors.Settings.Background.ToNativeColor(); tableView.TableFooterView = new UIView(); View.AddSubview(tableView); source = new SelectorTableViewSource <T>(tableView, options, selectedIndex, onItemSelected); tableView.Source = source; }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = title; tableView = new UITableView(View.Bounds); tableView.BackgroundColor = Colors.Settings.Background.ToNativeColor(); tableView.TableFooterView = new UIView(); View.AddSubview(tableView); source = new SelectorTableViewSource(tableView, selectedIndex, onItemSelected); tableView.Source = source; Observable.Return(options.Select(item => item.ItemName).ToImmutableList()) .Subscribe(tableView.Rx().ReloadItems(source)); }