Created
January 22, 2017 01:31
-
-
Save josephchang10/3be159ed848dc4d71e23134aced72afa to your computer and use it in GitHub Desktop.
初次加载隐藏搜索框
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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