Skip to content

Commit

Permalink
Merge pull request #16 from iamrado/feature/fix_logger_init_on_ios_10
Browse files Browse the repository at this point in the history
Fix logger is not initialized when using iOS 10 SDK
  • Loading branch information
rivera-ernesto committed Sep 22, 2016
2 parents 7b0e756 + 87c147f commit 9f5c7d7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Source/PTEConsoleTableView.m
Expand Up @@ -51,6 +51,7 @@ - (void)commonInit
// Default settings
self.allowsMultipleSelection = YES;
self.rowHeight = 20.0;
self.logger = [PTEConsoleLogger new];
}

- (void)willMoveToWindow:(UIWindow *)newWindow
Expand Down Expand Up @@ -93,19 +94,6 @@ - (void)setSearchBar:(UISearchBar *)searchBar
}
}

- (id<UITableViewDataSource>)dataSource
{
// Create a logger if needed
PTEConsoleLogger * logger = self.logger;
if (!logger)
{
logger = [PTEConsoleLogger new];
self.logger = logger;
}

return logger;
}

- (IBAction)clearConsole:(id)sender
{
[self.logger clearConsole];
Expand Down

0 comments on commit 9f5c7d7

Please sign in to comment.