Siriss
Siriss

Reputation: 3767

Hide section header "Prototype Cells" in Storyboard

I have Googled and Googled, but no luck... I am trying to hide the "Prototype Cells" section header that appears when you add a UITableView to a UIView using Storyboard.

enter image description here

It is frustrating, because it is hard to size the Cells to the screen, as that disappears when you run the program. Any ideas would be greatly appreciated! Thanks and I am sorry if this is a simple question, I am new to this.

Upvotes: 3

Views: 5765

Answers (2)

thesecondlastjedi
thesecondlastjedi

Reputation: 59

You will have to change the Prototype Cells number in Attributes Inspector. In the example below I have used a UITableView inside a UIView. But like the other comments say, it won't really affect your code. This is just to hide it in the storyboard.

Prototype Cells : 5 Prototype Cells : 0

Upvotes: 1

Ilker Baltaci
Ilker Baltaci

Reputation: 11789

This is actually the auto generated section header that appears at the beginning of the section. In XCode 5 when you have UITableView, click on the Table View Section -Header Title.Click on the attributes segment.

enter image description here

enter image description here

I you delete the text in Header "Header Title", this should remove the section header.

Upvotes: 3

Related Questions