0

我想知道是否有任何方法可以访问我的 iTunes 数据(歌曲信息)并从另一个 iOS 应用程序修改数据(创建新的(智能)播放列表、将歌曲添加到播放列表、向歌曲添加评论)?

我基本上正在考虑创建一个可以以自定义方式自动排序和组织我的歌曲的应用程序。

提前致谢!

4

1 回答 1

0

以下是 c# 中的方法:

    // initialize Itunes connection
    iTunesApp itunes = new iTunesLib.iTunesApp();
    private void Form1_Load(object sender, EventArgs e)
    {
         // get main library playlist
         ITLibraryPlaylist mainLibrary = itunes.LibraryPlaylist;
         // Gets a list of all playlists and adds them to the combo box
         foreach (ITPlaylist pl in itunes.LibrarySource.Playlists)
         {
               comboBox1.Items.Add(pl.Name);
         }
         // Gets the tracks within the mainlibrary
         GetTracks((ITPlaylist)mainLibrary);
         // Sets the datagridview1 data source to the data table.
         dataGridView1.DataSource = dataTable1;
    }

了解您想要使用的 iOS 应用程序或编程语言会很有帮助。

于 2017-09-11T19:15:26.173 回答