Skip to content

Commit

Permalink
don't use QOS_CLASS_* on iOS <8
Browse files Browse the repository at this point in the history
  • Loading branch information
zydeco committed Jul 15, 2016
1 parent d60cd3a commit 739e763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mini vMac/UIImage+DiskImageIcon.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ + (UIImage *)imageWithIconForDiskImage:(NSString *)path {

+ (void)loadIconForDiskImageAndNotify:(NSString *)path {
if ([NSThread isMainThread]) {
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
long queue = NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0 ? QOS_CLASS_USER_INITIATED : DISPATCH_QUEUE_PRIORITY_LOW;
dispatch_async(dispatch_get_global_queue(queue, 0), ^{
[self loadIconForDiskImageAndNotify:path];
});
return;
Expand Down

0 comments on commit 739e763

Please sign in to comment.