Open Zniel opened 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.
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; }
}
but, There must be a better way to resolve this issue.