Hi I have two tabs in my application. I implemented the tabs with UITabBarController. I can switch between the two tabs using the tab bar in the application. But I want to use buttons to switch between tabs. Both tab will contain one button. Pressing the button in any tab will switch to the other tab. I cant seem to find any way to do this.Thanks.
Hi I have two tabs in my application. I implemented the tabs with UITabBarController
Share
If you want to switch between tabs using code, it can be as simple as changing the “
selectedIndex“ property of your UITabBarController (provided that controller is hooked up to an outlet your view controller can address).