好的,所以我正在关注如何设置应用程序的 Aviary 文档教程,但是我遇到了两个错误。
代码如下
- (void)displayEditorForImage:(UIImage *)image
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[AFPhotoEditorController setAPIKey:kAFAviaryAPIKey secret:kAFAviarySecret];
});
AFPhotoEditorController *editorController = [[AFPhotoEditorController alloc] initWithImage:image2];
[editorController setDelegate:self]; //error is here
[self presentViewController:editorController animated:YES completion:nil];}
错误是 line [editorController setDelegate:self];
,它返回上述错误,我不知道如何解决这个问题。文档中提供的示例具有相同的代码,甚至示例应用程序也具有相同的代码,但似乎工作正常。有什么我做错了吗?