This is the CarPlay page, and the phone is running iOS17.5
The template creation code is as follows:
CPListTemplate *listTemplate = [[CPListTemplate alloc] initWithTitle:@"最近播放" sections:sections];
listTemplate.delegate = self;
[_interfaceController pushTemplate:listTemplate animated:YES completion:^(BOOL success, NSError * _Nullable error) {
}];
sections have many CPListItem.
When I exit the page, but the page does not free, causing memory to keep increasing.
I tried to refresh empty sections after exiting the page and memory freed for me, which confused me.
Do we have to manage the memory ourselves?