Question

Among other objects, I currently have a UITableView with a UIView subview. The height of the UIView subview is set to 0, by default in Interface Builder.

When I update the height of the UIView subview programmatically, it covers up the first row of the UITableView. I cannot adjust the y-position of the frame of the UITableView because it moves both the UITableView and the UIView subview.

Is there a way to avoid having the UIView subview cover the row of the UITableView?

Was it helpful?

Solution

Check out the tableHeaderView property of UITableView for this. Setting this property to be an empty view may solve your problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top