我尝试使用MPMediaItemCollection count属性对数组中的项进行排序。当我尝试使用此NSUInteger属性对数组进行排序时,它不起作用。当我尝试打印它(NSLog(@"%lx",count);)时,它不能正确打印。
如何让NSUInteger正常工作?
发布于 2009-09-17 18:23:51
也许这会有帮助。这对我使用MPMediaCollection很有效:
[everything setGroupingType: MPMediaGroupingGenre];
NSArray *genreLists = [everything collections];
for (MPMediaItemCollection *genreList in genreLists) {
NSLog (@"count: %d", [genreList count]);
}发布于 2009-12-17 02:19:28
尝试使用以下语句:我使用它,它会打印出just find for me
NSLog(@"%d",count);
https://stackoverflow.com/questions/1436609
复制相似问题