Mehdavi5
Mehdavi5

Reputation: 161

My Scroll View contents are not taking the full screen height?

I have put some UI components on my scroll view, it's supposed to take the full height of the screen. but it's leaving some empty space at the bottom.enter image description here

enter image description here

Upvotes: 0

Views: 698

Answers (1)

Madan gupta
Madan gupta

Reputation: 668

it might be happen because of scroll view insets

try this:

self.automaticallyAdjustsScrollViewInsets=NO;

You can use Interface Builder also, just make sure Adjust Scroll View Insets option is not-checked

enter image description here

Upvotes: 1

Related Questions