APLSearchBar 0.0.1

APLSearchBar 0.0.1

测试已测试
语言语言 Obj-Cobjective-C
许可证 MIT
发布上次发布2014年12月

Tino RachuiMathias KöhnkecgMichael KamphausenMathias KoehnkeNico SchümannHeiko WichmannStephan LernerFamara Kassama 维护。



  • Michael Kamphausen

UISearchBar 的子类,扩展了 UISearchBarDelegate 协议。

  • 当点击搜索按钮或清除按钮时,可以自动放弃第一个响应者
  • 当点击清除按钮时,询问代理是否应清除文本

iPhone Screenshot

安装

使用

导入头文件

#import "APLSearchBar.h"

当在搜索按钮上点击时,搜索栏会自动放弃第一个响应者

  • 在清除按钮上点击时
  • 如果将 shouldResignFirstResponderOnClear 设置为 YES,则当在清除按钮上点击时

APLSearchBarDelegate 通过以下内容扩展了 UISearchBarDelegate:

- (BOOL)searchBarShouldClear:(UISearchBar *)searchBar;