jondanao / TheSidebarController

A container view controller that implements different popular sidebar view controllers like Facebook, Airbnb, Flipboard, etc.
Other
360 stars 52 forks source link

Adds method to replace contentViewController and dismiss sideBar at the same time #10

Closed danwilliams64 closed 9 years ago

danwilliams64 commented 10 years ago

I found myself needing to replace the contentViewController, and then immediately dismiss the sideBar.

jondanao commented 10 years ago

Hi @danwilliams64

I would appreciate if you rename your method signature as such.

- (void)setContentViewController:(UIViewController *)viewController shouldDismissSidebarViewController:(BOOL)dismissSidebar;

I will merge it immediately. Thanks!

Jon

danwilliams64 commented 10 years ago

Hi Jon,

Thanks, I've just committed this change, and relocated the method to appear under

- (void)setContentViewController:(UIViewController *)contentViewController;

in the implementation.

Dan