APLSearchBar 0.0.1

APLSearchBar 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Tino Rachui, Mathias Köhnke, cg, Michael Kamphausen, Mathias Koehnke, Nico Schümann, Heiko Wichmann, Stephan Lerner, Famara Kassama.



  • By
  • Michael Kamphausen

UISearchBar subclass with extended UISearchBarDelegate protocol.

  • can automatically resign first responder when search button or clear button is tapped
  • asks it's delegate if the text should be cleared when clear button is tapped

iPhone Screenshot

Installation

Usage

Import header file:

#import "APLSearchBar.h"

The search bar automatically resigns first responder

  • when search button is tapped in case shouldResignFirstResponderOnSearchButtonClicked is set to YES
  • when clear button is tapped in case shouldResignFirstResponderOnClear is set to YES

APLSearchBarDelegate extends UISearchBarDelegate with:

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