Skip to content

Commit

Permalink
Merge pull request #17 from bcylin/auto-adjustment-filters
Browse files Browse the repository at this point in the history
Fix the missing `autoAdjustmentFilters` in iOS 9
  • Loading branch information
rivera-ernesto committed Oct 12, 2015
2 parents 289e2c7 + 4f4abd4 commit 6a9ec95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Filters/NBUCoreImageFilterProvider.m
Expand Up @@ -292,8 +292,9 @@ + (UIImage *)applyFilters:(NSArray *)filters
// Auto adjust off?
if (![filter boolValueForKey:@"autoAdjust"])
continue;

NSArray * autoFilters = [ciImage autoAdjustmentFilters];

// `autoAdjustmentFilters` is not available in iOS 9.0 and later.
NSArray * autoFilters = [ciImage autoAdjustmentFiltersWithOptions:nil];
NBULogVerbose(@"Applying auto adjustment filters: %@", autoFilters);
for (ciFilter in autoFilters)
{
Expand Down

0 comments on commit 6a9ec95

Please sign in to comment.