xcode 在情节提要中隐藏节标题“原型单元格”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13294207/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:02:48  来源:igfitidea点击:

Hide section header "Prototype Cells" in Storyboard

iphoneiosxcodeuitableview

提问by Siriss

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.

我用谷歌搜索过,但没有运气......我试图隐藏当您使用故事板将 UITableView 添加到 UIView 时出现的“原型单元格”部分标题。

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.

这是令人沮丧的,因为很难将单元格的大小调整到屏幕上,因为在您运行程序时它会消失。任何想法将不胜感激!谢谢,如果这是一个简单的问题,我很抱歉,我是新手。

回答by Ilker Baltaci

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.

这实际上是出现在该部分开头的自动生成的部分标题。在 XCode 5 中,当您有 UITableView 时,单击 Table View Section -Header Title。单击属性段。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

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

我删除了标题“标题标题”中的文本,这应该删除节标题。

回答by thesecondlastjedi

You will have to change the Prototype Cellsnumber 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.

您必须在Attributes Inspector 中更改Prototype Cells编号。在下面的示例中,我在 UIView 中使用了 UITableView。但是就像其他评论所说的那样,它不会真正影响您的代码。这只是为了将它隐藏在故事板中。

Prototype Cells : 5Prototype Cells : 0

原型细胞:5原型细胞:0