Show UITableView Overflow?

I have a UITableView with a transparent UIView above it. It looks great. The fact that you can see outside of a UITableView.

My problem is that if I make a UITableView to the end of the UIView, you will not be able to scroll it to see the last.

I tried adding a cell, but the sizes do not match, and it looks funny. What is the best solution?

Thanks Coulton

enter image description here

+4
source share
2 answers

Scrolls can be viewed as table views, you can give your table a bottom insertion that works like a bottom pad to push your cells some distance from the bottom edge of your table view.

CGFloat heightOfYourTabBar = 50; UIEdgeInsets insets = UIEdgeInsetsMake(0, 0, heightOfYourTabBar, 0); [self.tableView setContentInset:insets]; [self.tableView setScrollIndicatorInsets:insets]; 

The area of ​​your table view that appears below the tab bar will still be visible, but the "bottom" of your cells will be pushed up. This way, you can scroll all the way to the last cell without closing the tab bar.

Scrolling and pasting views are described in Configuring Scrolling Content Contents, Content, and Scrolling Indexes in the Apple Scroll View for iOS Programming Guide. There is an example for the Photos application, which is exactly the template that you imitate for your application, adding inserts.

+10
source

Didn't try it myself, but it might work:

Create a (empty) UIView with the appropriate height and set it in the tableFooterView table properties so that it appears under all your cells and makes the last cell above your toolbar.

+3
source

All Articles