鸟舍作物预设在iOS上不起作用
我试图强迫用户将他们的照片裁剪到有鸟舍的广场上。如中所述,可以禁用自定义作物并手动指定预设。我正在尝试以下几点:鸟舍作物预设在iOS上不起作用,ios,aviary,Ios,Aviary,我试图强迫用户将他们的照片裁剪到有鸟舍的广场上。如中所述,可以禁用自定义作物并手动指定预设。我正在尝试以下几点: [AFPhotoEditorCustomization setCropToolOriginalEnabled:NO]; [AFPhotoEditorCustomization setCropToolCustomEnabled:NO]; NSDictionary *SIZE = [[NSDictionary alloc] initWithObjectsAndKeys:
[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]];
但这是行不通的。这将导致0个裁剪选项:
您应该使用以下代码:
[AFPhotoEditorCustomization SetCroptoloRiginalEnabled:否];
[AFPhotoEditorCustomization setCropToolCustomEnabled:否];
NSDictionary*square=@{kAFCropPresetName:@“square”,kAFCropPresetHeight:@(1.0f),kafcroppresetwedth:@(1.0f)};
[AFPhotoEditorCustomization setCropToolPresets:@[square]]代码>在我的情况下不起作用。。由于使用Adobe更改了库,甚至使用了AdobeImageEditorCustomization而不是AFPhotoEditorCustomization。