Skip to content

Commit ac629e8

Browse files
committed
merge
2 parents 49ecb22 + fdbf9b4 commit ac629e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Coding_iOS/Views/Search/CategorySearchBar.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ -(void)setSearchCategory:(NSString*)title{
7171
@implementation MainSearchBar
7272
-(void)layoutSubviews
7373
{
74+
//fix width in ios7
75+
self.width=kScreen_Width-115;
7476
self.autoresizesSubviews = YES;
7577
//找到输入框 右移
7678
UITextField *searchField=[[[[self subviews] firstObject] subviews] lastObject];

0 commit comments

Comments
 (0)