I am developing a CarPlay app to provide CarPlay services in music apps.
I do not know how to play an alert when CarPlay is not playing music.
If you look at the Human Interface Guidelines provided by the Apple developer site, you are told to use a UIAlertController, but I do not know how to do a UIAlertController with presentViewController.
(- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^ __nullable)(void))completion)
How can I show an alert to CarPlay?
<CarPlay Human Interface Guidelines>
Alerts convey important information related to the state of your app. An alert consists of a title, an optional message, and one or more buttons. Aside from these configurable elements, the visual appearance of an alert is static and can’t be customized.
Minimize alerts. Alerts disrupt the user experience. Use alerts only for important situations like notifying people about problems. The infrequency of alerts helps ensure that people take them seriously.
For developer guidance, see UIAlertController.