user4951
user4951

Reputation: 33090

How to disable "scroll" behavior in UITableView when we insert them to a scrollView?

I want to put a UITableView in a scrollView.

I want the full UITableView there.

Hence, I do not want UITableView to "scroll" around independently. I want the UITableView to be fully displayed inside the scrollView.

What would you do on my situation?

Upvotes: 1

Views: 586

Answers (1)

Eiko
Eiko

Reputation: 25632

You can disable scrolling on your table view: tableView.scrollEnabled = NO;

Technically, your table view is a scroll view, so all of its properties are available.

Upvotes: 1

Related Questions