I created a UITableView with a small frame, like (0,0,50,50). I want to disable the horizontal scrolling but keep the vertical scrolling.
UITableView
I set se
se
You can set AlwaysBounceHorizontal property of UITableView to false as follows:
AlwaysBounceHorizontal
Swift:
self.tableView.alwaysBounceHorizontal = false
Objective-C:
[self.tableView setAlwaysBounceHorizontal:NO];