UITableView inside UIScrollView

It should be straight forward, but I just can not understand (!)

I have a UIView 'populated' with a UIScrollView. Inside scrollView, I don't have a UITableView.

I hooked up both scrollView and tableView with IBOutlet in IB and assigned ViewController as delegate and tableView data source.

What else do I need to do? Or what should I not have done?

+3
source share
2 answers

An is UITableViewalready there UIScrollView. Why do you need to add an extra number between your view and the table?

Just delete UIScrollViewit and it will work better than before :)

0
source

UITableView UIScrollView ( , ). scrollViewDidScroll ( layoutSubviews ) .

0

Source: https://habr.com/ru/post/1770747/


All Articles