Is it possible to have other UIControls in a UITableView?

I have a UITableView with 3 sections inside a UIViewController. Is it possible to have other controls on a UITableView, such as UISlider or UIImage? If so, how can this be done?

Note. These controls should not be in the UITableViewCell, they should be part of the view.

+3
source share
1 answer

Yes, you can add a UIView to the table header or footer, look at the tableHeaderView and tableFooterView properties . A UIView can be a UIControl or a view containing UIControls.

+4

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


All Articles