Xlpagertabstrip: How to Scroll To the Second Tab programmatically

Created on 5 Oct 2017  路  3Comments  路  Source: xmartlabs/XLPagerTabStrip

Hi guys,

How can I scroll to the Second Tab programmatically?

Respect.

Most helpful comment

inside viewdidappear use this

            self.moveToViewController(at: 1,animated: false)

All 3 comments

inside viewdidappear use this

            self.moveToViewController(at: 1,animated: false)

Thank you very much @ahmedsafadii

Never use the index which is already selected
else you would waste your time alot.

Was this page helpful?
0 / 5 - 0 ratings