2017-01-21 7 views
0

写真編集アプリを作成しようとしています。私はインターネットで検索し、Adobe Creative SDKがイメージを編集するのに適していることがわかりました。そこにはドキュメントがありました。しかしここでは、私はリダイレクトする代わりにツールのみを使用したいと思っています。AdobeUXImageEditorViewControllerツール(フレーム、ステッカー、ブラシなど)。そうすることができるのですか、それともコントローラに持っているのですか?IOSでAdobe Creative SDKのツールのみを使用する方法

ありがとうございましたら、誰かがサンプルコードで私を助けてください。

以下は必要とされAdobeUXImageEditorViewControllerコントローラへのViewControllerの

- (void)launchPhotoEditorWithImage:(UIImage*)image 
 
{ 
 
    // Create photo editor 
 
    AdobeUXImageEditorViewController *editorController = [[AdobeUXImageEditorViewController alloc] initWithImage:image]; 
 
    [editorController setDelegate:self]; 
 
    [self.navigationController presentViewController:editorController animated:YES completion:nil]; 
 
} 
 

 
- (void)photoEditor:(AdobeUXImageEditorViewController *)editor finishedWithImage:(UIImage *)image 
 
{ 
 
    UIImage *imageToEdit=image; 
 
    _imageViewForEditing.image=imageToEdit; 
 
    // Handle the result image here and dismiss the editor. 
 
    //[self doSomethingWithImage:image]; // Developer-defined method that presents the final editing-resolution image to the user, perhaps. 
 
    [self dismissViewControllerAnimated:YES completion:nil]; 
 
} 
 

 
- (void)photoEditorCanceled:(AdobeUXImageEditorViewController *)editor 
 
{ 
 
    // Dismiss the editor. 
 
    [self dismissViewControllerAnimated:YES completion:nil]; 
 
}

答えて

0

を使用し、私のuiimageをリダイレクトするコードです。 ViewControllerなしでツールにアクセスする方法はありません。

+0

返信いただきありがとうございます。 – Uttam

関連する問題