MTPopupWindow icon indicating copy to clipboard operation
MTPopupWindow copied to clipboard

close button action method not working crash when i click the button.

Open nam6i opened this issue 10 years ago • 0 comments

I have used your code same as it but it crashed when i click the close button. [closeBtn addTarget:self action:@selector(closePopupWindow) forControlEvents:UIControlEventTouchUpInside];

i didn't change the closePopupWindow method

-(void)closePopupWindow { //remove the shade [[bigPanelView viewWithTag: kShadeViewTag] removeFromSuperview];
[self performSelector:@selector(closePopupWindowAnimate) withObject:nil afterDelay:0.1];

}

but it works when i call the function like [self closePopupWindow];

error: [__NSCFArray closePopupWindow]: unrecognized selector sent to instance llb

please give me the suggestions where i went wrong

nam6i avatar Jun 24 '15 17:06 nam6i