Post not yet marked as solved
Post marked as unsolved with 1 replies, 157 views
Hello.
In CarPlay programming guide code example, we set the interfaceController property to nil in the didDisconnect method.
// CarPlay disconnected
func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene,
didDisconnect interfaceController: CPInterfaceController) {
self.interfaceController = nil
}
}
However it's not explained why we need this. moreover when we debug we see clearly that the interfaceController is released from memory normally without needing to set it to nil.
Does anyone has an explanation for that ?