Krisztian
Krisztian

Reputation: 477

UITableView contentOffset changes on drag

I have an UITableView and I want to hide a part of it's header (kind of pull to refresh). I did it with contentOffset and it works fine when the content is larger than the screen. It hides when needed and show when needed but when the content takes up less space than the screen, it changes the contentOffset from (0,50) to (0,25.5) every time I start to scroll. I think it i not related to my code because I commented out everything that had something to do with contentOffset except the viewWillAppear method what sets the contentOffset the first time. Any idea?

Upvotes: 0

Views: 613

Answers (1)

xmhafiz
xmhafiz

Reputation: 3538

On attribute inspector, unchecked Adjust Scroll View Insets as show in image below

enter image description here

Upvotes: 1

Related Questions