I'm trying to implement XLPagerTabStrip in my project. in the documentation it says "ButtonBarPagerTabStripViewController requires us to connect buttonBarView outlet. buttonBarView type is ButtonBarView which extends from UICollectionView." what this means. Sorry for my bad English.
Asked
Active
Viewed 356 times
1 Answers
1
I hope you're talking about this below lines that is mentioned in this post.
- According to document your ButtonBarPager working is like below gif.
To use this first you have to implement this below code
import XLPagerTabStrip class MyPagerTabStripName: ButtonBarPagerTabStripViewController { .. }
Now press cmd key from keyboard and click on the
ButtonBarPagerTabStripViewController
. It navigates you to the ButtonBarPagerTabStripViewController.There is a outlet buttonBarView (as shown in below image).
- Now you have to bind this outlet to the view which you wanted use as a barView. Check below image.
Hope now you'r cleared.
Edit
If you check the definition of ButtonBarView
then it extends UICollectionView
and same is written in the description post. Check below Image for more clearance.

dahiya_boy
- 9,298
- 1
- 30
- 51
-
Ok, but if I have more then one item to connect ? – Lucas Oliveira Ferreira Dec 21 '18 at 15:38
-
@LucasOliveiraFerreira Can you explain, why you need more then 1 connection ?? – dahiya_boy Dec 21 '18 at 17:43
-
if i want two tabs in different view controller – Lucas Oliveira Ferreira Dec 22 '18 at 00:43
-
@LucasOliveiraFerreira Do same at different controller also. Just connect the outlet. Im not 100% sure but most probably it must work. – dahiya_boy Dec 22 '18 at 07:06