ios - XLPagerTabStrip 快速

标签 ios swift xlpagertabstrip

我正在尝试在我的项目中实现 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/

相关文章:

ios - IOS 中的 HTTPS post 请求

ios - Sprite 套件在纵向模式下无法在正确位置绘制线条

ios - 从ios swift中的多个类库进行子类化

ios - 即使 iPhone 未连接到 Internet 也收到设备 token

ios - 无法在模拟器中运行应用程序 : Xcode beta 6 iOS 8

ios - Alamofire block 使用大量内存

ios - AVPlayerViewController 问题

ios - 如何让 XLPagerTabStrip 将选定的选项卡居中?

ios - 使用 iOS 库时 Storyboard View 未连接

android - 火力基地 : How to Check Count of Users on a Specific App Version from Firebase Console