Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 559
jjuser19jj Avatar asked Mar 13 '14 13:03

jjuser19jj


1 Answers

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.

like image 96
Krivoblotsky Avatar answered Sep 29 '22 16:09

Krivoblotsky