jjuser19jj
jjuser19jj

Reputation: 1699

Prototype UITableViewCell is not at top of UITableView in Storyboard

As the questions already says: When I add a prototype UITableViewCell to my TableView, the cell is not displayed at the top, here is a image: enter image description here

How can I get the cell to the top of my TableView again?

Upvotes: 5

Views: 2692

Answers (2)

Sébastien REMY
Sébastien REMY

Reputation: 2470

In storyboard select viewcontroller (the yellow circle with a white square inside) then click on extend edges under bottom bars option.

ViewController

Remember to select your view controller not your tableview or tableviewcell.

Upvotes: 0

Krivoblotsky
Krivoblotsky

Reputation: 1502

The problem is that your trackViewController.automaticallyAdjustsScrollViewInsets == YES, so additional topInset of 64px will be added to first UIScrollView in its view (this is UITableView in your case).

You can do the following:

Set table view origin y to 0

or

set automaticallyAdjustsScrollViewInsets to NO.

Upvotes: 15

Related Questions