You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: