Instance Method

presentTemplate:animated:

Presents a template modally.

Declaration

- (void)presentTemplate:(__kindof CPTemplate *)templateToPresent animated:(BOOL)animated;

Parameters

templateToPresent

A template to display over currently displayed content on the CarPlay screen. The template must be one of the following types:

animated

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

Discussion

You can present only one template at a time.

See Also

Displaying Templates Modally

- dismissTemplateAnimated:

Dismisses the template that the interface controller is displaying modally.

presentedTemplate

The current modal template displayed by the interface controller.