【发布时间】:2013-01-27 18:26:55
【问题描述】:
使用 MonoTouch.Dialog 我添加了一个简单的表格并添加了一个 ScopeBar:
this.Style = UITableViewStyle.Plain;
this.EnableSearch = true;
this.AutoHideSearch = false;
this.SearchPlaceholder = "Search".t();
UISearchBar sb = TableView.TableHeaderView as UISearchBar;
if (sb != null)
{
sb.ScopeButtonTitles = new string[] { "Girl".t(),"Boy".t(),"All".t() };
sb.ShowsScopeBar = true;
sb.SizeToFit();
}
看起来不错:
当我设置 Section 并给它一个 Title 时,Section 出现在范围栏的顶部:
Section secMain = new Section("Top 100".t());
【问题讨论】:
标签: ios uitableview xamarin.ios uisearchbar monotouch.dialog