Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Interface builder (iOS 9+)</h1> <p>Just drag a UIView to the table. In storyboard, it will sit at the top below your custom cells. You may prefer to name it "footer".</p> <p>Here it is shown in green for clarity, you'd probably want clear color.</p> <p>Note that by adjusting the height, you can affect how the "bottom bounce" of the table is handled, as you prefer. (Height zero is usually fine).</p> <p><a href="https://i.stack.imgur.com/OOwGA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OOwGA.png" alt="enter image description here"></a></p> <hr> <p>To do it programmatically: </p> <h1>Swift</h1> <pre><code>override func viewDidLoad() { super.viewDidLoad() self.tableView.tableFooterView = UIView() } </code></pre> <h1>Objective-C</h1> <h2>iOS 6.1+</h2> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; // This will remove extra separators from tableview self.tableView.tableFooterView = [UIView new]; } </code></pre> <p>or if you prefer,</p> <pre><code> self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; </code></pre> <h2>Historically in iOS:</h2> <p>Add to the table view controller...</p> <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { // This will create a "invisible" footer return CGFLOAT_MIN; } </code></pre> <p>and if necessary...</p> <pre><code>- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { return [UIView new]; // If you are not using ARC: // return [[UIView new] autorelease]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload