ios - Querying for ipod library podcasts, and sorting them by author/title -
i´v got these 2 methods fetches contents of ipod library me. still not proficient use of these classes. example podcast title of podcast in library, if want set predicate , query individual podcasts author/podcast title how that.
/* delegate * set media type */ - (mpmediapropertypredicate *)mediatypetofetchfromipodlibrary: (abstracttvc *) sender; { mpmediapropertypredicate *abpredicate = [mpmediapropertypredicate predicatewithvalue:[nsnumber numberwithint:mpmediatypepodcast] forproperty:mpmediaitempropertymediatype]; return abpredicate; } /* overriden abstract method subclass * */ - (mpmediaquery *)setmediaqueryoptions: (mpmediaquery*)abquery withpredicate: (mpmediapropertypredicate*) abpredicate { [abquery addfilterpredicate:abpredicate]; //[abquery setgroupingtype:mpmediagroupingalbum]; [abquery setgroupingtype:mpmediagroupingpodcasttitle]; return abquery; }
Comments
Post a Comment