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
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