简体   繁体   English

FooterView没有显示在Storyboard UICollectionView中

[英]FooterView not showing up in Storyboard UICollectionView

I am trying to put a footer view into my UICollectionView in Storyboard but when I click the footer view radio button, the image for the collection view updates but no views are added to the hierarchy as you can see in the image below. 我试图将一个页脚视图放到Storyboard中的UICollectionView中,但是当我单击页脚视图单选按钮时,集合视图的图像会更新,但是没有视图添加到层​​次结构中,如下图所示。 What am I missing? 我想念什么?

在此处输入图片说明

After you check "Section Footer" checkbox (not radio button) Collection Reusable View item should appear inside Collection View hierarchy which is in the left panel. 选中“部分页脚”复选框(而非单选按钮)后,“集合可重用视图”项应出现在左侧面板中的“集合视图”层次结构内。 Now I am not seeing it at all in your panel. 现在,您的面板中根本看不到它。 Something is wrong with your collection or your Xcode. 您的集合或Xcode出了点问题。 For example in my XCode 7.2, when I check both header and footer checkboxes, collection view hierarchy looks like this: 例如,在我的XCode 7.2中,当我同时选中页眉和页脚复选框时,集合视图层次结构如下所示:

在此处输入图片说明

在此处输入图片说明

Try to update your Xcode or create new storyboard file. 尝试更新您的Xcode或创建新的故事板文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM