【发布时间】:2013-01-27 19:27:38
【问题描述】:
当我启用 ScopeBar 并在 Monotouch.Dialog 控件上连接 SelectedScopeButtonIndexChanged 时,自动搜索功能会在您启用时启用设置 EnabledSearch=true 已禁用。
以下是它被禁用的方式:
UISearchBar sb = SearchBar;
if (sb != null)
{
sb.ScopeButtonTitles = new string[] { "Girl".t(),"Boy".t(),"All".t() };
sb.ShowsScopeBar = true;
sb.SizeToFit();
// THIS NEXT LINE KILLS SEARCH, remove to make it all work again
sb.SelectedScopeButtonIndexChanged+= (sender, e) => {Update();};
}
【问题讨论】:
标签: iphone ios uitableview xamarin.ios monotouch.dialog