cocopon/CQMFloatingController

Dismiss by UIBarButton

Closed this issue · 2 comments

Hi there. First, this controller is awsome! :)

Is there any way to dismiss it by clicking UIBarButton, instead of outside the window?

Just add a method and link to your button:

  • (void)removeItemPicker {
    CQMFloatingController *floatingController = [CQMFloatingController sharedFloatingController];
    [floatingController dismissAnimated:YES];
    }

I'm sorry for the delay.
As DoctorG said, call dismissAnimated: in the bar button action.