liufengting / FTPopOverMenu

FTPopOverMenu is a pop over menu for iOS which is maybe the easiest one to use. Supports both portrait and landscape. It can show from any UIView, any UIBarButtonItem and any CGRect.
MIT License
1.04k stars 171 forks source link

Sometimes can't dismiss the menu #48

Open calvingit opened 4 years ago

calvingit commented 4 years ago

I meet a situation: The menu show on the top of viewController, i can't touch the cell or the blank space to dismiss. But I can scroll the view below the menu.

The FTPopOverMenuConfiguration is like below:

    FTPopOverMenuConfiguration *configuration = [FTPopOverMenuConfiguration defaultConfiguration];
    configuration.menuRowHeight = 50;
    configuration.menuWidth = 200;
    configuration.borderWidth = 0;
    configuration.textFont = [UIFont systemFontOfSize:16];
    configuration.textColor = UIColor.blackColor;
    configuration.backgroundColor = [UIColor whiteColor];
    configuration.shadowColor = [UIColor clearColor];
    configuration.shadowRadius = 0;
    configuration.shadowOpacity = 0;
    configuration.shadowOffsetX = 0;
    configuration.shadowOffsetY = 0;
    configuration.ignoreImageOriginalColor = YES;

And the calling function is :


    [FTPopOverMenu showForSender:titleButton
                   withMenuArray:titles
                      imageArray:nil
                   configuration:configuration
                       doneBlock:^(NSInteger selectedIndex) {
                           /// do something
                       }
                    dismissBlock:nil];