Skip to content

Crash in forwardInvocation #68

Description

@nonstriater

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!

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