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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -