Skip to content

Commit 489ad3c

Browse files
张达棣张达棣
authored andcommitted
更新搜索key的逻辑
1 parent 44c4d32 commit 489ad3c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Coding_iOS/Views/ScreenView.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
8787

8888
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
8989
[tableView deselectRowAtIndexPath:indexPath animated:YES];
90+
self.keyword = nil;
91+
_searchBar.text = nil;
9092
_selectNum = indexPath.row;
9193
[tableView reloadData];
9294
if (indexPath.row < _tastArray.count) {

0 commit comments

Comments
 (0)