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

Table view scrolling issue #20

Open
Isuru-Nanayakkara opened this issue May 6, 2014 · 3 comments
Open

Table view scrolling issue #20

Isuru-Nanayakkara opened this issue May 6, 2014 · 3 comments

Comments

@Isuru-Nanayakkara
Copy link

Hi Matej,
I have come across 2 issues using MBPullDownController. I'm using the Storyboards method by the way.

  1. I have a UITableViewController as the back controller. And the problem is the last couple of cells are obscured by the front controller when scrolling. For example, I have 10 rows here.
    ios simulator screen shot may 6 2014 12 32 38 pm

But the last cell is covered from the front controller view. The table view doesn't reach the end. If I pull up, you can see it but if I let go, it hides behind again.

ios simulator screen shot may 6 2014 12 32 44 pm

  1. In my above example I have only 10 items. If I increase it up to say, 30 and try to scroll to the bottom, it gets stuck halfway!
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 30;
}

I cannot scroll back up or down. It's weird. I have no idea why that's happening.

I also uploaded a small Xcode project to demonstrate the issues I'm having. If you can take a look at it and tell me how to correct them, I'd really appreciate it. To
https://www.dropbox.com/s/xfdvbnlzxulim8e/PullDownTest.zip

Thank you.

@plefebvreAdmazing
Copy link

Hi Isuru-Nanayakkara,

I've got the same issue with all type of scrolling view. Did you find out a solution?

Thanks,

Pierre

@Isuru-Nanayakkara
Copy link
Author

I don't exactly remember. But try this. I think I added the below code snippet to the viewDidAppear of the UITableViewController you're using as the back controller.

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    // Resize the table view so that the last few cells aren't obscured by the front controller
    self.tableView.frame = CGRectMake(0, 0, self.tableView.frame.size.width, self.tableViewHeight - 60);
}

@matej
Copy link
Owner

matej commented Aug 18, 2014

Setting appropriate an appropriate contentInset and scrollIndicatorInsets on the table view should resolve the issue.

@lucoceano lucoceano mentioned this issue Jan 27, 2015
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

3 participants