Search code examples
objective-ciosaviary

How to work with Aviary SDK in iOS


I want to create an image editing app and I am using Aviary but I can't find any tutorials on Aviary, that's why I'm having a problem on working on it.

Are there any tutorials for how to use Aviary SDK for iOS?

I am reading this document, but are there are any tutorials, to easily show what to do?


Solution

  • Just create an Aviary object:

    AFPhotoEditorController *e = [[AFPhotoEditorController alloc] initWithImage:IMAGE];
    
    [e setDelegate:self];
    
    [self presentModalViewController:e animated:YES];
    

    Then implement Finished & Canceled Delegate methods:

    - (void)photoEditor:(AFPhotoEditorController *)editor finishedWithImage:(UIImage *)image
    
    - (void)photoEditorCanceled:(AFPhotoEditorController *)editor
    

    Good Luck!