some_id
some_id

Reputation: 29886

Switching between tabs programmatically

Is it possible to change tabs programmatically?

Switch tabs so the user sees another tabs view.

Upvotes: 1

Views: 270

Answers (1)

Richard Stelling
Richard Stelling

Reputation: 25665

Just set the selectedIndex on the UITabBarController.

UITabBarController *tabbarController  = ...

...

tabbarController.selectedIndex = 1; //Tabs indexed from 0, left to right

Upvotes: 2

Related Questions