Created
June 22, 2016 07:59
-
-
Save kchromik/34aee6cf3752051acce747d5f154f3d6 to your computer and use it in GitHub Desktop.
Query iTunes Video Media
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *items; | |
MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:@(MPMediaTypeHomeVideo) forProperty:MPMediaItemPropertyMediaType]; | |
MPMediaQuery *query = [[MPMediaQuery alloc] init]; | |
[query addFilterPredicate:predicate]; | |
items = [query items]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment