Dismiss by UIBarButton
Closed this issue · 2 comments
rackom commented
Hi there. First, this controller is awsome! :)
Is there any way to dismiss it by clicking UIBarButton, instead of outside the window?
DoctorG commented
Just add a method and link to your button:
- (void)removeItemPicker {
CQMFloatingController *floatingController = [CQMFloatingController sharedFloatingController];
[floatingController dismissAnimated:YES];
}
cocopon commented
I'm sorry for the delay.
As DoctorG said, call dismissAnimated: in the bar button action.