Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIScrollView bounces when content is smaller than view's size

How can I simply let the scrollview bounce, when the content size is smaller than the view's frame and when I drag it?

like iPhone's app search results.

like image 275
boreas Avatar asked Jul 23 '10 12:07

boreas


2 Answers

If you prefer .xib just check Bounce Vertically.

enter image description here

like image 53
Kamil Harasimowicz Avatar answered Oct 18 '22 01:10

Kamil Harasimowicz


see UIScrollView (paging mode) bounces only when there two or more pages?

you'd better set the property:

scroll.alwaysBounceVertical = YES;
scroll.alwaysBounceHorizontal = YES;
like image 33
eternity Avatar answered Oct 17 '22 23:10

eternity