Skip to content

Commit

Permalink
优化树状列表控件,完善筛选功能
Browse files Browse the repository at this point in the history
  • Loading branch information
mayan29 committed May 18, 2018
1 parent d8c7192 commit fc14a39
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TreeTableView/TreeTableView/DemoTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,10 @@ - (void)tableViewController:(MYTreeTableViewController *)tableViewController che
[self.navigationController popViewControllerAnimated:YES];
}

- (void)searchBarShouldBeginEditingInTableViewController:(MYTreeTableViewController *)tableViewController {

NSLog(@"点击了搜索栏");
}


@end
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
- (MYTreeTableManager *)managerInTableViewController:(MYTreeTableViewController *)tableViewController;
/** 如果是单选,点击 cell 会直接调用,如果是多选,通过 prepareCommit 方法会调用 */
- (void)tableViewController:(MYTreeTableViewController *)tableViewController checkItems:(NSArray <MYTreeItem *>*)items;
/** 监控点击搜索框,埋点用 */
- (void)searchBarShouldBeginEditingInTableViewController:(MYTreeTableViewController *)tableViewController;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ - (void)searchBarEditingChanged:(MYSearchBar *)searchBar {
/** 监控点击搜索框,埋点用 */
- (void)searchBarShouldBeginEditing:(MYSearchBar *)searchBar {

if ([self.classDelegate respondsToSelector:@selector(searchBarShouldBeginEditingInTableViewController:)]) {
[self.classDelegate searchBarShouldBeginEditingInTableViewController:self];
}
}


Expand Down

0 comments on commit fc14a39

Please sign in to comment.