Skip to content

Crash when dismissing VC #25

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

Open
francisjervis opened this issue Aug 2, 2015 · 2 comments
Open

Crash when dismissing VC #25

francisjervis opened this issue Aug 2, 2015 · 2 comments

Comments

@francisjervis
Copy link
Contributor

I am getting a crash at removeFromSuperview when (and only when) the table is scrolled down so the header is at maximum compression. If it's even a pixel above that, no crash! This is in Swift, xCode 6.4.

@francisjervis
Copy link
Contributor Author

I suspect this is coming from these lines, looking at the stack trace:

        [_contentView setContentOffset:(CGPoint){0,0} animated:NO];
        [_backgroundScrollView setContentOffset:CGPointMake(0, -delta * 0.5f)animated:NO];

screen shot 2015-08-01 at 11 25 31 pm

@balkarov
Copy link

balkarov commented Nov 8, 2015

I had the same problem. I fix it:
Simple add to JPBParallaxTableViewController.m

-(void)dealloc
{
    [self.tableView removeFromSuperview];
}

The problem is not on iOS 9,

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

2 participants