我正在使用 CarPlay(模拟器 10.3.1)并在 MPPlayableContentDataSource 中实现所有方法,但未调用下面的方法。
- (void)contentItemForIdentifier:(NSString *)identifier completionHandler:(void(^)(MPContentItem *__nullable, NSError * __nullable))completionHandler
有人知道原因吗?
最佳答案
您是否设置了 MPPlayableContentDataSource 的委托(delegate)和数据源。因为如果不设置这两个属性,所有与 dataSource 和 delegate 相关的方法都不会执行。
关于ios - MPPlayableContentDataSource 不调用 contentItemForIdentifier :completionHandler:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46767024/