Skip to content

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

Description

@nam6i

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions