2

I feel like this is a really daft problem, but I cannot seem to hook my UIScrollView up to the containerView property. I have a UIViewController in the storyboard, whose class is MyCustomClass. MyCustomerClass inherits from ButtonBarPagerTabStripViewController. However none of the outlets from ButtonBarPagerTabStripViewController appear in the storyboard?

Welton122
  • 1,101
  • 2
  • 13
  • 28

2 Answers2

3

I think you have done something like this

class exampleViewController: ButtonBarPagerTabStripViewController {
    ...
}

screenshot1

Then in my case, I can see containerView in outlets:

screenshot2

And you can drag it to your scroll view.

FelixSFD
  • 6,052
  • 10
  • 43
  • 117
ioio007
  • 237
  • 5
  • 14
  • @ioio007 for me containerView & buttonBarView is not showing in outlets, I have done like this only `exampleViewController: ButtonBarPagerTabStripViewController` Any idea or guidance please – Vignesh Sundaramoorthy Mar 28 '17 at 11:23
0

I also had the same issue.

It seems to happen when the library is installed via Carthage.

I found an issue mentioned in the XLPagerTabStrip repository https://github.com/xmartlabs/XLPagerTabStrip/issues/244

Solution:

You can drag an own containerView by Storyboard,Naming Do not repeat XLPagerTabStrip of containerView,For example: xxxcontainerView,Then before super.viewDidLoad(),You can do this: self.containerView = self.xxxcontainerView & same for the buttonBarView

Vignesh Sundaramoorthy
  • 1,827
  • 1
  • 25
  • 38