title: In iOS, can I access the iTunes song list?
body: <p>I'm looking for a way to programmatically (<em>i.e.</em>, not via UI) access a users iTunes music library from my iOS app.</p>
  
  <p>(Yes, I am aware that Apple discourages alternate iPod-interface apps.  That's not the question :)</p>
  
  <p>What I'd like to do is:</p>
  
  <blockquote>
    <ul>
    <li>Gather a list of song names.</li>
    <li>Have my app make an anagram of them.</li>
    <li>Have the user guess the original song name.</li>
    <li>If they guess right, I play a snippet of the song.</li>
    </ul>
  </blockquote>
  
  <p>(That's not my real application, but it contains all the pieces I need.)  The parts that I'm asking about are: How to get a list of song names and, given a song name, how to get the media to play it?</p>
  
  <p>I think that AVAssetReader is what will let me play a song, once I have its name, so I can look that up on my own (bonus points for pointers there, though!) -- so the bottom-line question is: How to get a list of song titles from a user's iTunes Library in iOS?</p>