diff --git a/keyBoard/Class/AiTalk/V/PopView/KBAIPersonaSidebarView.m b/keyBoard/Class/AiTalk/V/PopView/KBAIPersonaSidebarView.m index 5e29ae9..d94ad75 100644 --- a/keyBoard/Class/AiTalk/V/PopView/KBAIPersonaSidebarView.m +++ b/keyBoard/Class/AiTalk/V/PopView/KBAIPersonaSidebarView.m @@ -164,7 +164,7 @@ @property (nonatomic, strong) UIView *searchContainer; @property (nonatomic, strong) UIImageView *searchIconView; @property (nonatomic, strong) UITextField *searchField; -@property (nonatomic, strong) UITableView *tableView; +@property (nonatomic, strong) BaseTableView *tableView; @property (nonatomic, strong) NSArray *personas; @property (nonatomic, strong) NSArray *displayPersonas; @@ -203,7 +203,7 @@ }]; [self.searchContainer mas_makeConstraints:^(MASConstraintMaker *make) { - make.top.equalTo(self.contentView).offset(14); + make.top.equalTo(self.contentView).offset(KB_STATUSBAR_HEIGHT + 20); make.left.equalTo(self.contentView).offset(16); make.right.equalTo(self.contentView).offset(-16); make.height.mas_equalTo(36); @@ -396,14 +396,15 @@ _searchField.textColor = [UIColor whiteColor]; _searchField.font = [UIFont systemFontOfSize:14]; _searchField.clearButtonMode = UITextFieldViewModeWhileEditing; + _searchField.returnKeyType = UIReturnKeySearch; [_searchField addTarget:self action:@selector(searchFieldChanged:) forControlEvents:UIControlEventEditingChanged]; } return _searchField; } -- (UITableView *)tableView { +- (BaseTableView *)tableView { if (!_tableView) { - _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; + _tableView = [[BaseTableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; _tableView.backgroundColor = [UIColor clearColor]; _tableView.separatorStyle = UITableViewCellSeparatorStyleNone; _tableView.showsVerticalScrollIndicator = NO;