1
나는 앨범 트랙의 MPMediaItemCollection을 포함하는 Album 개체를 가지고있다.MPMusicPlayerController의 큐를 설정하여 컬렉션의 첫 번째 트랙 만 추가하는 이유는 무엇입니까?
다음 코드 줄을 사용하여이 collecton을 큐에 추가하면 첫 번째 트랙 만 추가됩니다.
[iPodMusicPlayer setQueueWithItemCollection:album.mediaItems];
이상하게도 다음 코드 줄을 추가하면 모든 것이 예상대로 작동합니다.
[iPodMusicPlayer setQueueWithItemCollection:[MPMediaItemCollection collectionWithItems:[album.mediaItems items]]];
왜 두 번째 줄이 처음에는 작동하지 않습니까?