Ramya Issac
Ramya Issac

Reputation: 17

Scrolling UITableView horizontally and Vertically

when I embed UITableView within Scroll View it scrolls vertically but overwriting occurs while scrolling what to do...?

Upvotes: 1

Views: 715

Answers (1)

Nemanja
Nemanja

Reputation: 194

Answer:

There is no need to embed UITableView within UIScrollView since UITableView is inherited from UIScrollView. If you want horizontal scrolling you should use UICollectionView instead.

Apple:

You should not embed UIWebView or UITableView objects in UIScrollView objects. If you do so, unexpected behavior can result because touch events for the two objects can be mixed up and wrongly handled.

Upvotes: 1

Related Questions