我想在我的UISearchBar中的文本太短而无法提交搜索时禁用它们.
// default is NO (when YES,will automatically disable return key when text widget has zero-length contents,and will automatically enable when text widget has non-zero-length contents)
但是,我确信SK9已经注意到你无法指定何时启用和禁用它的规则.