cocopon/CQMFloatingController

Question : how to add an uibarbuttonitem in the navigation bar

Closed this issue · 1 comments

Hi,
first thank you for this great component that I will use in several of my future apps for sure!
I would like to know if it's possible (and how) to add an uibarbuttonitem in the popup nav bar.
I've tried the following but didn't work :
UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"comments"] style:UIBarButtonItemStyleBordered target:self action:@selector(newComment:)];
floatingController.navigationItem.rightBarButtonItem = rightButton;

Thank you
Emmanuel

Found the response myself : by setting the navigationItem of the presentedViewController and not the floatingViewController.