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

Crash in forwardInvocation #68

Open
nonstriater opened this issue Aug 2, 2015 · 0 comments
Open

Crash in forwardInvocation #68

nonstriater opened this issue Aug 2, 2015 · 0 comments

Comments

@nonstriater
Copy link

I got a crash when pop viewController that storyboard linked

image

when i print the "po [anInvocation selector]"
image

It seams that VC calls the dealloc method cause the crash!

and, that's import, it will crash when storyboardlink dealloc!

So, I think add a "-dealloc" method for SBStoryboardLink will solve this problem!

finally, i update the method like that:

- (void)forwardInvocation:(NSInvocation *)anInvocation {
    if ([anInvocation selector]!=NSSelectorFromString(@"dealloc") && [self.scene respondsToSelector:[anInvocation selector]])
        [anInvocation invokeWithTarget:self.scene];
    else
        [super forwardInvocation:anInvocation];
}

and it worked!

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