我在 ios 项目中使用 Aviary sdk。我添加了文档中提到的所有框架和头文件。现在我在 viewdidload 中调用下面的方法。
- (void)displayEditorForImage:(UIImage *)imageToEdit
{
AFPhotoEditorController *editorController = [[AFPhotoEditorController alloc] initWithImage:imageToEdit];
[editorController setDelegate:self];
[self presentViewController:editorController animated:YES completion:nil];
}
但它在日志下面给出警告并且不显示 Aviary 窗口。
Warning: Attempt to present <AFSDKViewController: 0x7e1aeb0> on <ViewController: 0x7934af0> whose view is not in the window hierarchy!
我如何在我的项目中集成 aviary sdk