Programmatically Switching Tabs in CarPlay TabBar Template?

Hi everyone,

I'm working with the CarPlay TabBar template in my app. Is there a way to programmatically switch between tabs, or is this only possible through user interaction?

Any guidance or clarification would be appreciated. Thanks!

Answered by Frameworks Engineer in 806815022

Yes, you can switch tabs programmatically. Please see selectTemplate: and selectTemplateAtIndex: on CPTabBarTemplate.

Accepted Answer

Yes, you can switch tabs programmatically. Please see selectTemplate: and selectTemplateAtIndex: on the tab bar template.

Yes, you can switch tabs programmatically. Please see selectTemplate: and selectTemplateAtIndex: on CPTabBarTemplate.

Programmatically Switching Tabs in CarPlay TabBar Template?
 
 
Q