gpt4 book ai didi

ios - XLPagerTabStrip 快速

转载 作者:行者123 更新时间:2023-11-28 13:55:55 26 4
gpt4 key购买 nike

我正在尝试在我的项目中实现 XL​​PagerTabStrip。在文档中它说“ButtonBarPagerTabStripViewController 要求我们连接 buttonBarView socket 。buttonBarView 类型是从 UICollectionView 扩展的 ButtonBarView。”这是什么意思。抱歉我的英语不好。

最佳答案

我希望你是在谈论这个 post 中提到的下面几行.

enter image description here


  1. 根据文档,您的 ButtonBarPager 工作方式如下 gif。

enter image description here

  1. 要首先使用它,您必须实现下面的代码

    import XLPagerTabStrip

    class MyPagerTabStripName: ButtonBarPagerTabStripViewController {
    ..
    }
  2. 现在按键盘上的 cmd 键并单击 ButtonBarPagerTabStripViewController。它会将您导航到 ButtonBarPagerTabStripViewController

  3. 有一个outlet buttonBarView(如下图所示)。

enter image description here

  1. 现在您必须将此导出绑定(bind)到您想要用作 barView 的 View 。检查下图。

enter image description here

希望现在你已经清除了。

Edit

如果您检查 ButtonBarView 的定义,那么它会扩展 UICollectionView 并且在描述帖子中也有描述。查看下图以获得更多权限。

enter image description here

enter image description here

关于ios - XLPagerTabStrip 快速,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53880639/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com