Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
zonghongyan committed Oct 28, 2017
2 parents c9bb147 + 86f51f0 commit dc57fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ pod install
self.navigationItem.titleView = self.searchBar;
if (@available(iOS 11.0, *))
{
[self.searchBar.heightAnchor constraintLessThanOrEqualToConstant:44].active = YES;
[self.searchBar.heightAnchor constraintLessThanOrEqualToConstant:kEVNScreenNavigationBarHeight].active = YES;
}
else
{
Expand All @@ -80,7 +80,7 @@ $ pod install
{
if (!_searchBar)
{
_searchBar = [[EVNCustomSearchBar alloc] initWithFrame:CGRectMake(0, 20, kEVNScreenWidth, 44)];
_searchBar = [[EVNCustomSearchBar alloc] initWithFrame:CGRectMake(0, kEVNScreenStatusBarHeight, kEVNScreenWidth, kEVNScreenNavigationBarHeight)];
_searchBar.backgroundColor = [UIColor clearColor]; // 清空searchBar的背景色
_searchBar.iconImage = [Helper imagesNamedFromCustomBundle:@"EVNCustomSearchBar.png"];
Expand Down

0 comments on commit dc57fbf

Please sign in to comment.