【问题标题】:xlpagertabstrip cannot hook up containerViewxlpagertabstrip 无法连接 containerView
【发布时间】:2016-10-02 11:03:26
【问题描述】:

我觉得这是一个非常愚蠢的问题,但我似乎无法将我的 UIScrollView 连接到 containerView 属性。我在情节提要中有一个 UIViewController,其类是 MyCustomClass。 MyCustomerClass 继承自 ButtonBarPagerTabStripViewController。但是 ButtonBarPagerTabStripViewController 的所有出口都没有出现在情节提要中?

【问题讨论】:

    标签: ios swift uiscrollview xlpagertabstrip


    【解决方案1】:

    我认为你做过这样的事情

    class exampleViewController: ButtonBarPagerTabStripViewController {
        ...
    }
    

    那么就我而言,我可以在网点看到containerView

    你可以把它拖到你的滚动视图中。

    【讨论】:

    • @ioio007 对我来说 containerView 和 buttonBarView 没有显示在网点中,我只是这样做了 exampleViewController: ButtonBarPagerTabStripViewController 任何想法或指导
    【解决方案2】:

    我也遇到了同样的问题。

    似乎是通过 Carthage 安装库时发生的。

    我发现 XLPagerTabStrip 存储库 https://github.com/xmartlabs/XLPagerTabStrip/issues/244 中提到的一个问题

    解决方案:

    可以通过Storyboard拖一个自己的containerView,命名不要重复containerView的XLPagerTabStrip,例如:xxxcontainerView,然后在super.viewDidLoad()之前,可以这样:self.containerView = self.xxxcontainerView & buttonBarView 也一样

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-18
      • 2018-04-01
      • 2014-03-01
      • 2019-05-21
      • 2019-12-07
      • 2020-04-06
      相关资源
      最近更新 更多