提交 e4c1737e 编写于 作者: Y yixiangboy

日志监控新增一键清除功能

上级 28d42dec
......@@ -26,6 +26,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.title = DoraemonLocalizedString(@"NSLog日志记录");
[self setRightNavTitle:@"清除"];
//按照时间倒序排列
self.dataArray = [[[DoraemonNSLogManager sharedInstance].dataArray reverseObjectEnumerator] allObjects];
......@@ -43,6 +44,12 @@
[self.view addSubview:self.tableView];
}
- (void)rightNavTitleClick:(id)clickView {
[[DoraemonNSLogManager sharedInstance].dataArray removeAllObjects];
self.dataArray = [[NSArray alloc] init];
[self.tableView reloadData];
}
#pragma mark - UITableView Delegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册