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

Crashing on callDelegateWithNewMessage #60

Open
heatherSnepenger opened this issue Nov 6, 2012 · 0 comments
Open

Crashing on callDelegateWithNewMessage #60

heatherSnepenger opened this issue Nov 6, 2012 · 0 comments

Comments

@heatherSnepenger
Copy link

I have been trying to implement MTStatusBarOverlay into my project. I have the status bar messages in several view controllers, and when I start clicking rapidly between view controllers, I end up getting an error in this method:

  • (void)callDelegateWithNewMessage:(NSString *)newMessage {

    if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidSwitchFromOldMessage:toNewMessage:)]) {
    NSString *oldMessage = nil;

    if (self.messageHistory.count > 0) {
        oldMessage = [self.messageHistory lastObject];
    }
    
    [self.delegate statusBarOverlayDidSwitchFromOldMessage:oldMessage
                                              toNewMessage:newMessage];
    

    }
    }

at the first if statement. Any thoughts? Do you need more info?

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