swift - 使用 XLPagerTabStrip 时出现问题

标签 swift xlpagertabstrip

我在 XLPagerTabStrip Usage 中完成了所有操作

但是有问题:(

2016-05-21 20:36:53.108 [13794:5338746] the behavior of the 
UICollectionViewFlowLayout is not defined because:
2016-05-21 20:36:53.109 [13794:5338746] the item height must 
be less than the height of the UICollectionView minus the 
section insets top and bottom values, minus the content insets 
top and bottom values.
2016-05-21 20:36:53.109 [13794:5338746] Please check the values 
return by the delegate.
2016-05-21 20:36:53.110 [13794:5338746] The relevant 
UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x137c836e0>, 
and it is attached to <XLPagerTabStrip.ButtonBarView: 0x13715ec00; 
baseClass = UICollectionView; frame = (0 66; 375 45); 
clipsToBounds = YES; autoresize = RM+BM; 
gestureRecognizers = <NSArray: 0x137c82f30>; 
layer = <CALayer: 0x137c64ff0>; contentOffset: {0, 0}; 
contentSize: {239.5, 128}> collection view layout: 
<UICollectionViewFlowLayout: 0x137c836e0>.
2016-05-21 20:36:53.110 [13794:5338746] Make a symbolic breakpoint 
at UICollectionViewFlowLayoutBreakForInvalidSizes to catch 
this in the debugger.

我找不到任何解决方案。 有人知道吗?

最佳答案

https://github.com/xmartlabs/XLPagerTabStrip/issues/162 这是完全相同的问题,我就像该链接一样解决了我的问题。

关于swift - 使用 XLPagerTabStrip 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37363614/

相关文章:

ios - 以编程方式切换 subview Controller : XLPagerTabStrip

ios - 如何在 swift 中从 childViewContoller 刷新 parentViewContoller?

swift - 在 alamofire 中发送对象数组

swift - Google Nearby for Swift - 如何仅发现音频?

ios - 如何减少responseJSON 中的样板文件,就像我使用 URLRequestConvertible 对相关的 Web 调用进行分组一样

ios - 快速滑动导航 TableView

ios - 结合 Cocoapods 和 Carthage

swift - Realm - 如何获取父子关系中实体所有者的列表?

swift - XLPagerTabStrip : My title label in tab bar not fully showed

ios - 如何将导航栏或其他东西放在 XLPagerTabStrip 上方