Why does “tableHeaderView” of UITableView scroll up with a content?
How can I make it stay fixed? Its behavior is so counterintuitive!
My tableView has a .plain
style, and I don’t have any sections. It’s a very simple table with many rows (so they scroll). However, I need the tableHeaderView
to remain fixed while scrolling the content. I’ve tried everything, but nothing works — it always moves.
According to the info I found, .plain
style tableView header actually should stay fixed. But in practice it’s just not the case. Very confusing.
Shadow view is getting darker every time the content is visible in CardView attempt of UITableView
I’m trying to achieve a Card View layout with UITableView in Swift UIKit. When I use the below code, i get what i want but every time the cell comes to the visible area the background and the shadow gets darker and darker.
I have a problem where when I tap on a cell to display a picker, the picker is being displayed on the next table view cell
extension ContactsTourViewController {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
print(“Contacts count: (contacts.count)”)
return contacts.count
}