runway20 / PopoverView

A simple UIView popover control for iPhone/iPad written in CoreGraphics.
1.02k stars 214 forks source link

when I press button a little quick, e.g. double click, then #45

Open Zniel opened 10 years ago

Zniel commented 10 years ago

when I press button a little quick, e.g. double click…… then the popover may overlay and can not dismiss.

after all, I use some flag to avoid this happen. -(void)structTypeBtnClick:(UIButton*)sender{ _typeBtn = sender; if (_typeBtn.selected) { return; }

[PopoverView showPopoverAtPoint:CGPointMake(530, 960) inView:self.view withContentView:_switchControl delegate:self];
_typeBtn.selected=YES;

}

but, There must be a better way to resolve this issue.