Instance Method

popToTemplate:animated:

Pops templates until the specified template is at the top of the navigation stack.

Declaration

- (void)popToTemplate:(__kindof CPTemplate *)targetTemplate animated:(BOOL)animated;

Parameters

targetTemplate

The template that you want at the top of the stack. The template must be on the navigation stack before you call this method.

animated

A Boolean value that indicates whether the system animates the display of transitioning templates. Set to YES to animate the transition.

See Also

Pushing and Popping Templates

- pushTemplate:animated:

Pushes a template onto the navigation stack and updates the CarPlay display.

- popTemplateAnimated:

Pops the top template from the navigation stack and updates the CarPlay display.

- popToRootTemplateAnimated:

Pops all templates on the stack—except the root template—and updates the CarPlay display.