Ternary
Ternary

Reputation: 2411

UIScrollView content visible then bounces away

I have a pretty simple UIScrollView defined inside Interface Builder. I've pasted in some UILabels and when I run my app, I can drag to see the UILabels at the bottom but as soon as I let go it bounces away from view.

What property controls this sort of setting?

Upvotes: 1

Views: 940

Answers (2)

Rob Segal
Rob Segal

Reputation: 7625

For the bounce effect there is a bounces property for UIScrollView which controls this...

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/instp/UIScrollView/bounces

And has been mentioned by Ian Henry contentSize should control the size of your scrollable area.

Upvotes: 1

Ian Henry
Ian Henry

Reputation: 22403

The contentSize property should do the trick. Don't forget about the docs.

Upvotes: 2

Related Questions