Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message sent to deallocated instance error #67

Open
chatvenkat opened this issue May 10, 2016 · 0 comments
Open

message sent to deallocated instance error #67

chatvenkat opened this issue May 10, 2016 · 0 comments

Comments

@chatvenkat
Copy link

Hi,

I'm calling segue on click of the other button, and this throws "message sent to deallocated instance" error on line #532 in LMAlertView.m file. The line is shown below.
if ([self.delegate respondsToSelector:@selector(alertView:didDismissWithButtonIndex:)]) {
[self.delegate alertView:(UIAlertView *)self didDismissWithButtonIndex:buttonIndex];
}

This is my code on alertview delegate.
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if(buttonIndex==1){
[alertView dismissWithClickedButtonIndex:-1 animated:true];
alertView=nil;
[self performSegueWithIdentifier:@"xxxx" sender:self];
}
}

Any suggestions please advice ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant