菜鸟教程小白 发表于 2022-12-13 02:28:35

ios - 如何添加几个 UICollectionReusableView


                                            <p><p>我有两个不同的 View 需要在 UICollectionView 中实现。我的问题是如何使用 Storyboard 向 UICollectionView 添加两个 UICollectionReusableView?</p>

<p>例如我可以将它添加为源代码:</p>

<p> forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderView"];</p>

<p> Storyboard中还有另一个标题,</p>

<p>但是如何将两个 UICollectionReusableView 添加到 Storyboard 并配置它们。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>将它们拖到文档大纲中:</p>

<p> <img src="/image/5cnz8.png" alt="enter image description here"/> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何添加几个 UICollectionReusableView,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/26206800/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/26206800/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何添加几个 UICollectionReusableView