allow for background fetch QoS on iOS 8+
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -330,6 +330,10 @@ | @@ -330,6 +330,10 @@ | ||
330 | 330 | ||
331 | _backgroundFetchQueue = [NSOperationQueue new]; | 331 | _backgroundFetchQueue = [NSOperationQueue new]; |
332 | [_backgroundFetchQueue setMaxConcurrentOperationCount:6]; | 332 | [_backgroundFetchQueue setMaxConcurrentOperationCount:6]; |
333 | + if ([_backgroundFetchQueue respondsToSelector:@selector(setQualityOfService:)]) | ||
334 | + { | ||
335 | + [_backgroundFetchQueue setQualityOfService:NSQualityOfServiceUtility]; | ||
336 | + } | ||
333 | 337 | ||
334 | NSUInteger totalTiles = [self tileCountForSouthWest:southWest northEast:northEast minZoom:minZoom maxZoom:maxZoom]; | 338 | NSUInteger totalTiles = [self tileCountForSouthWest:southWest northEast:northEast minZoom:minZoom maxZoom:maxZoom]; |
335 | 339 |
-
Please register or login to post a comment