ios - XLPagerTabStrip:在 ButtonBarView 和 NavigationBar iOS 之间添加空间

标签 ios swift uinavigationbar xlpagertabstrip

我正在使用 XLPagerTabStrip在 swift 3 应用程序中。

这是我的 Storyboard:

enter image description here enter image description here

我在 Interface Builder 中将 CollectionView 添加到 VC,并将其类设置为“ButtonBarView”

我在 ButtonBarView 中添加了顶部空间约束,使其与 navigationBar 之间有空间,但它始终保持 0 空间

最佳答案

您需要将 buttonBarView 链接到您的 ButtonBarPagerTabStripViewController buttonBarView

enter image description here

enter image description here

希望对你有帮助

关于ios - XLPagerTabStrip:在 ButtonBarView 和 NavigationBar iOS 之间添加空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45594525/

相关文章:

arrays - 如何使用 Firebase 数据库进行分页?

ios - 如何更改 UINavigationController 背景颜色?

iphone - TableView 中文本字段的输入 View

iphone - 检测全局 UIWindow 对象上的触摸事件

ios - 提高GKAgent的速度

ios - GRDB swift 中的 DatabaseConnecton 问题

ios - 长按识别器结束后调用 wkwebview decidePolicyForNavigationAction

ios - 无法同时更改导航栏文本字体和颜色

ios - 我无法成功将 UINavigationBar 的 barTintColor 设置为 clearColor

ios - 根据当前显示的 UICollectionViewCell 更改 UISegmentedControl.selectedIndex 值