答案 0 :(得分:1)
所以,我找到了答案。最后的数字是产品ID。采用该链接https://itun.es/ua/qzPyfb?i=1164089149。想象一下,我们已经从字符串的最后数字中得到了。
MPMediaLibrary *library = [MPMediaLibrary defaultMediaLibrary];
[library addItemWithProductID:trackId completionHandler:^(NSArray<__kindof MPMediaEntity *> * _Nonnull entities, NSError * _Nullable error) {
if (error) {
NSLog(@"%@", error);
} else {
if ([entities count]) {
for (MPMediaItem *item in entities) {
NSLog(@"%@", item.title);
}
} else {
NSLog(@"There is no track with this product Id. Bad link.");
}
}
}];