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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -