我正在使用CarPlay(模擬器10.3.1)並實現MPPlayableContentDataSource中的所有方法,但不調用下面的方法。MPPlayableContentDataSource不會調用contentItemForIdentifier:completionHandler:
- (void)contentItemForIdentifier:(NSString *)identifier completionHandler:(void(^)(MPContentItem *__nullable, NSError * __nullable))completionHandler
是否有人知道任何原因?
也許在某些numberOfItems方法中有0項?或者您可能沒有註冊標識 –
所有其他方法都會被調用。我有標識符 –
文檔說'內容項被加載後調用的塊'。所以我猜你的內容項不加載 – Lefteris