Shar3r
Shar3r

Reputation: 69

Table View don't bounce

My question is :

Why when I build and run the Table View created with different rows don't bounce, although I selected the checkbox Bounces and Bounce Vertically in Xcode 6 ?

Upvotes: 0

Views: 1330

Answers (2)

G.Anushiya
G.Anushiya

Reputation: 31

Try this code:

[eventTable setBounces:NO]; (OR)In Storyboard untick the Bounces.

Upvotes: 1

Nikita Kukushkin
Nikita Kukushkin

Reputation: 15138

By default UIScrollView, which is a superclass of UITableView won't bounce if the content fits within its bounds i.e. if the rows fit within table's bounds. To alter this behaviour you can set alwaysBounceVertical property to true.

var alwaysBounceVertical: Bool { get set }

If this property is set to true and bounces is true, vertical dragging is allowed even if the content is smaller than the bounds of the scroll view. The default value is false.

Upvotes: 1

Related Questions