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

Content ViewControllers Height #32

Open
pventura1976 opened this issue Oct 27, 2014 · 0 comments
Open

Content ViewControllers Height #32

pventura1976 opened this issue Oct 27, 2014 · 0 comments

Comments

@pventura1976
Copy link

Hi,

I don't know if this happens in other cases but when using with StoryBoard, NavigationViewController and reusing previous tableView controllers the content view is not resized properly, causing the last row of the table view be cut-off.

This is how I solved it:

- (TTSlidingPage *) pageForSlidingPagesViewController:(TTScrollSlidingPagesController*)source atIndex:(int)index {

    UIViewController *viewController;
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

    // Instantiate content view controllers

    storyboard = nil;

    // Adjust content view controller height
    viewController.view.frame = CGRectMake(_slider.view.frame.origin.x,
                                               _slider.view.frame.origin.y,
                                               _slider.view.frame.size.width,
                                               _slider.view.frame.size.height - _slider.titleScrollerHeight);

    return [[TTSlidingPage alloc] initWithContentViewController:viewController];

}

Best.

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