Aviary crop presets not working on iOS -
i'm trying force users crop photo square aviary. described in aviary documentation here, possible disable custom crops , specify presets manually. attempting following:
[afphotoeditorcustomization setcroptooloriginalenabled:no]; [afphotoeditorcustomization setcroptoolcustomenabled:no]; nsdictionary *size = [[nsdictionary alloc] initwithobjectsandkeys: @"kafcroppresetname",@"square", @"kafcroppresetwidth",@"1.0f", @"kafcroppresetheight",@"1.0f", nil]; [afphotoeditorcustomization setcroptoolpresets:[[nsarray alloc] initwithobjects:size, nil]];
but not work. results 0 cropping options:
you should use below code:
[afphotoeditorcustomization setcroptooloriginalenabled:no]; [afphotoeditorcustomization setcroptoolcustomenabled:no]; nsdictionary * square = @{kafcroppresetname: @"square", kafcroppresetheight : @(1.0f), kafcroppresetwidth : @(1.0f)}; [afphotoeditorcustomization setcroptoolpresets:@[square]];
Comments
Post a Comment