UISearchBar的使用
来源:互联网 发布:js ll 和 优先级 编辑:程序博客网 时间:2024/05/18 02:51
- searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake(0.0, 0.0, self.view.bounds.size.width, 40)];
- searchBar.placeholder=@"Enter Name";
- searchBar.delegate = self;
- searchBar.showsCancelButton = YES;
- theTableView.tableHeaderView = searchBar;
- searchBar.keyboardType = UIKeyboardTypeDefault;
- //searchBar.autocorrectionType = UITextAutocorrectionTypeNo;
- //searchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
- [self.view addSubview: searchBar];
- //search Button clicked....
- - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar // called when keyboard search button pressed
- {
- NSLog( @"%s,%d" , __FUNCTION__ , __LINE__ );
- [searchBar resignFirstResponder];
- }
- //cancel button clicked...
- - (void)searchBarCancelButtonClicked:(UISearchBar *) searchBar // called when cancel button pressed
- {
- NSLog( @"%s,%d" , __FUNCTION__ , __LINE__ );
- [searchBar resignFirstResponder];
- }
0 0
- UISearchBar的使用
- UISearchBar 的使用
- UISearchBar的使用
- UISearchBar 的使用
- UISearchBar的使用
- UISearchBar的使用
- UISearchBar的使用
- UISearchBar和 UISearchDisplayController的使用
- UISearchBar和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- UISearchBar和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- UISearchBar和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- UISearchBar 和 UISearchDisplayController的使用
- iOS之UISearchBar的使用
- WebSphere的web工程中怎么获取数据源
- 创新实验室实习生每周工作总结【实习第十一周】
- 2014/6/9~2014/6/15
- shell编程——if语句
- 查询选修了全部课程的学生姓名
- UISearchBar的使用
- Cascalog入门
- NMF-matlab
- 车载系统之 Windows CE 应用软件框架设计
- 怎么样在电脑上禁用快捷键?
- ubuntu android开发环境搭建
- Windows下Redis的安装使用
- 第16周总结
- Struts2修改项目名称,同步Tomcat路径