Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:50:07+00:00 2026-06-15T05:50:07+00:00

I am an iOS Developer.I am working on iMusic Library.I need to fetch the

  • 0

I am an iOS Developer.I am working on iMusic Library.I need to fetch the particular particular playlist from iMusic Library in iOS SDK.Like “Recently added”,”Top 25″ or any other playlist created by user manually.

Right now i am using the following code,by which i am able to get the whole iMusic Library,but now i need to fetch its particular playlist.

MPMediaQuery *media = [[MPMediaQuery alloc]init];
    NSArray *arr = [media items];
    int count1arr count];
    NSLog(@" count 1 is %d",count1);
    for(MPMediaItem *song in arr)
    {

        if(count>=count1)
        {
            return;
            count--;
        }
        else{
            //To print songs title
            NSString *title = [song valueForProperty:MPMediaItemPropertyTitle];
            NSString *artistsong valueForProperty:MPMediaItemPropertyAlbumArtist];
            NSLog(@"title is %@", title);
            NSLog(@"artist is %@",artist);

            if(artist == nil || [artist isEqualNSNull null]] || [artist isEqualToString:@""]){
                listDictNSDictionary dictionaryWithObjectsAndKeys:title,@"title",@"Unknown",@"artist", nil ];
                NSLog(@"List now is  %@",listDict);
                [dictArray addObject:listDict];
                NSLog(@"Dict array is %@",dictArray);
            }
            else{
                listDictNSDictionary dictionaryWithObjectsAndKeys:title,@"title",artist,@"artist", nil ];
                NSLog(@"List now is  %@",listDict);
                [dictArray addObject:listDict];
                NSLog(@"Dict array is %@",dictArray);

            }
        }
    }
    NSLog(@"List now is  %@",listDict);.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:50:08+00:00Added an answer on June 15, 2026 at 5:50 am

    As you can read in the MPMediaQuery documentation you can create a playlist media query object by calling playlistsQuery on the MPMediaQuery class.

    MPMediaQuery *playlistQuery = [MPMediaQuery playlistsQuery];
    NSArray *playlistArray = [playlistQuery collections];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm an Android developer working on an iOS version of our app. I need
I'm working with Apple's Accelerometer Graph Example: http://developer.apple.com/library/ios/#samplecode/AccelerometerGraph/Introduction/Intro.html I'm pushing 2 Graph Views onto
I'm working off of some of Apple's sample code for mixing audio ( http://developer.apple.com/library/ios/#samplecode/MixerHost/Introduction/Intro.html
I'm a iOS Application developer.I need some similar tasks in many projects as example
I've been working on getting an image to upload from my iOS app to
I'm a new iOS developer, I'm working on a video player app for a
i am working with an other developer in developing an iOS application and now
I am new in iOS developer. Now I am working at a background location
I'm studied the pARK example project (http://developer.apple.com/library/IOS/#samplecode/pARk/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011083) so I can apply some of its
I am downloading pdf file from server using this code. NSString *urlString = @https://developer.apple.com/library/ios/documentation/uikit/reference/UILabel_Class/UILabel_Class.pdf;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.