Reputation: 69
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
Reputation: 31
Try this code:
[eventTable setBounces:NO]; (OR)In Storyboard untick the Bounces.
Upvotes: 1
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