Black Lives Matter. Please consider donating to Black Girls Code today.

Navigating to Other tab automatically

I have two tabs in my app.When I click the button on 1st tab, it should navigate to second tab automatically.How do I do that?