그래서 답변을 찾았습니다. 마지막 숫자는 제품 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.");
}
}
}];