ca-archived/iOS-NBUCore

simple uiviewcontroller with log?

johndpope opened this issue · 1 comments

Great job. This is really working well on iphone.

For ipad - I need to dig in to add support for rotation.
is it possible to allocate a viewcontroller and instantiate the logger ?
I don't need swipe down gestures.

If so - would you happen to have the code?

Thanks in advance

JP

There are two objects:

  • NBUDashboard: A UIWindow that handles pan gestures and rotation.
  • NBUDashboardLogger: A DDAbstractLogger which receives log messages and populates a UITableView and manages a UISearchBar.

You could for instance just create/instantiate yourself a NBUDashboardLogger, UITableView and UISearchBar, connect them and register the logger:

// Create the objects
NBUDashboardLogger * logger = ...
UITableView * tableView = ...
UISearchBar * searchBar = ...

// Connect them
logger.tableView = tableView;
logger.searchBar = searchBar;

// Register logger
[NBULog addLogger:logger]; // Or [DDLog addLogger:logger];

Give it a try and tell me if it works!

Cheers.