Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Latest commit

 

History

History
28 lines (19 loc) · 907 Bytes

README.markdown

File metadata and controls

28 lines (19 loc) · 907 Bytes

NiftySearchView

This project aims to replicate the search interface of the Google Maps App.

The repo includes an example project so you can see how it works. Short ... it's just a simple UIView

Basic usage is as follows:

NiftySearchView *searchView = [[NiftySearchView alloc] initWithFrame:CGRectMake(0, -76, 320, 76)];
searchView.delegate = (id)self;
[self.view addSubview:searchView];

Also uses a delegate protocol for all view actions

@protocol NiftySearchViewDelegate <NSObject>
- (void)startBookmarkButtonClicked:(UITextField *)textField;
- (void)finishBookmarkButtonClicked:(UITextField *)textField;
- (void)routeButtonClicked:(UITextField *)startTextField finishTextField:(UITextField *)finishTextField;
- (void)niftySearchViewResigend;
@end

Requirements:

  • iOS5 or above
  • Automatic Reference Counting