{"action":"created","issue":{"url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/48","labels_url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/48/comments","events_url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/48/events","html_url":"https://github.com/imgly/imgly-sdk-ios/issues/48","id":109999129,"number":48,"title":"How to perform segue to pass edited image","user":{"login":"y9du","id":13094684,"avatar_url":"https://avatars.githubusercontent.com/u/13094684?v=3","gravatar_id":"","url":"https://api.github.com/users/y9du","html_url":"https://github.com/y9du","followers_url":"https://api.github.com/users/y9du/followers","following_url":"https://api.github.com/users/y9du/following{/other_user}","gists_url":"https://api.github.com/users/y9du/gists{/gist_id}","starred_url":"https://api.github.com/users/y9du/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y9du/subscriptions","organizations_url":"https://api.github.com/users/y9du/orgs","repos_url":"https://api.github.com/users/y9du/repos","events_url":"https://api.github.com/users/y9du/events{/privacy}","received_events_url":"https://api.github.com/users/y9du/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-06T12:39:22Z","updated_at":"2015-12-09T12:51:30Z","closed_at":null,"body":"Hi,\r\n\r\nI have posted an issue before and hank you for showing me how to get the edited image by modifying the completion block. I am now able to pass the edited image to the viewcontroller where the IMGLYCameraViewController is initiated; however I am stuck when I am trying to pass the edited image to a new viewcontroller using segue. I was wondering where I did wrong. Below is the code:\r\n\r\n\r\n\r\n- (IBAction)imgProcessing:(id)sender {\r\n    \r\n    IMGLYCameraViewController *cameraViewController = [[IMGLYCameraViewController alloc] initWithRecordingModes:@[@(IMGLYRecordingModePhoto), @(IMGLYRecordingModeVideo)]];\r\n    \r\n    // Needed to avoid retain cycles\r\n    __weak typeof(cameraViewController) weakCameraViewController = cameraViewController;\r\n    \r\n    cameraViewController.completionBlock = ^(UIImage *image, NSURL *movieURL) {\r\n        __strong typeof(weakCameraViewController) strongCameraViewController = weakCameraViewController;\r\n        \r\n        if (image != nil) {\r\n            IMGLYMainEditorViewController *editorViewController = [[IMGLYMainEditorViewController alloc] init];\r\n            editorViewController.highResolutionImage = image;\r\n            editorViewController.initialFilterType = strongCameraViewController.cameraController.effectFilter.filterType;\r\n            editorViewController.initialFilterIntensity = strongCameraViewController.cameraController.effectFilter.inputIntensity;\r\n            editorViewController.completionBlock = ^(IMGLYEditorResult result, UIImage *editedImage) {\r\n                // You get the edited image here and can do with it whatever you want\r\n                if (result == IMGLYEditorResultDone) {\r\n                \r\n                    [_editedImage setImage:editedImage];\r\n\r\n                    [self performSegueWithIdentifier:@\"pushImage\" sender:self];\r\n                                 \r\n                }\r\n                else{\r\n                   [self dismissViewControllerAnimated:YES completion:NULL];\r\n                }\r\n                \r\n                            };\r\n            \r\n            IMGLYNavigationController *navigationController = [[IMGLYNavigationController alloc] initWithRootViewController:editorViewController];\r\n            navigationController.navigationBar.barStyle = UIBarStyleBlack;\r\n            navigationController.navigationBar.translucent = NO;\r\n            navigationController.navigationBar.titleTextAttributes = @{ NSForegroundColorAttributeName : [UIColor whiteColor] };\r\n            \r\n            [strongCameraViewController presentViewController:navigationController animated:YES completion:nil];\r\n        }\r\n    };\r\n    \r\n        [self presentViewController:cameraViewController animated:YES completion:nil];\r\n    \r\n    \r\n    }\r\n\r\n\r\n\r\n- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender\r\n  {\r\n    if ([segue.identifier  isEqual: @\"pushImage\"]){\r\n         PostViewController *Post= [segue destinationViewController];\r\n        Post.image = _editedImage.image;\r\n        [self presentViewController:Post animated:YES completion:nil];\r\n    }\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/comments/163220002","html_url":"https://github.com/imgly/imgly-sdk-ios/issues/48#issuecomment-163220002","issue_url":"https://api.github.com/repos/imgly/imgly-sdk-ios/issues/48","id":163220002,"user":{"login":"sascha","id":895505,"avatar_url":"https://avatars.githubusercontent.com/u/895505?v=3","gravatar_id":"","url":"https://api.github.com/users/sascha","html_url":"https://github.com/sascha","followers_url":"https://api.github.com/users/sascha/followers","following_url":"https://api.github.com/users/sascha/following{/other_user}","gists_url":"https://api.github.com/users/sascha/gists{/gist_id}","starred_url":"https://api.github.com/users/sascha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sascha/subscriptions","organizations_url":"https://api.github.com/users/sascha/orgs","repos_url":"https://api.github.com/users/sascha/repos","events_url":"https://api.github.com/users/sascha/events{/privacy}","received_events_url":"https://api.github.com/users/sascha/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T12:51:30Z","updated_at":"2015-12-09T12:51:30Z","body":"@JasonGreenAmerica: Could you send me a link to some sample code please?"}}