Skip to content

Commit 32f8371

Browse files
committed
搜索 ui bug
1 parent c4414e4 commit 32f8371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Coding_iOS/Views/Search/CategorySearchBar.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (instancetype)initWithFrame:(CGRect)frame
2828
-(void)layoutSubviews{
2929
[super layoutSubviews];
3030
UITextField *searchField = self.eaTextField;
31-
searchField.leftView.frame = CGRectMake(0, 0, 20, 13);
31+
searchField.leftView.frame = CGRectMake(8, (CGRectGetHeight(searchField.bounds) - 13)/2, 20, 13);
3232
searchField.leftView.contentMode = UIViewContentModeLeft;
3333
}
3434
@end

0 commit comments

Comments
 (0)