Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- (void)initSearchBar
searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];
[searchBar sizeToFit];
searchBar.placeholder = [IFI18nUtils getLocalizedString:@"SEARCH"];
searchBar.delegate = self;
searchBar.backgroundColor = [UIColor clearColor];
[self.collectionView setContentInset:UIEdgeInsetsMake(-44, 0, 0, 0)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.