Reputation: 32207
Situation
The TableView
does everything I need it to because it
UIView
)Problems
Realization
I can fix my current problems by switching to a UIView, but then other problems are introduced.
Question
How can I resolve this?
Upvotes: 2
Views: 1326
Reputation: 10175
For the scroll indicator you can use:
tableView.scrollIndicatorInsets = UIEdgeInsetsMake(yourHeaderHeight, 0, 0, 0);
If you don't want the header to move when the table view bouncing is enabled you should replace the header with a UIView and the table view should start at the bottom of the UIView
Upvotes: 6
Reputation: 7344
Maybe you can do something like this
containerView
|
|--- headerView (subview of containerView)
|
|--- tableView/scrollView (subview of containerView)
so you separate the headerView
from the tableview
and the scrollView indicator will just be on the tableView.
This is assuming you mean a table view header and not a section header.
Upvotes: 0