set UISearchBarDelegate automatically.