Can we programmatically switch tabs in CarPlay's 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 806819022

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

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.

Can we programmatically switch tabs in CarPlay's TabBar template?
 
 
Q