ca-archived / iOS-NBUCore

Convenience macros, functions and API availability checks for iOS projects.
http://cyberagent.github.io/iOS-NBUCore
Apache License 2.0
115 stars 18 forks source link

simple uiviewcontroller with log? #2

Closed johndpope closed 11 years ago

johndpope commented 11 years ago

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

rivera-ernesto commented 11 years ago

There are two objects:

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.