繁体   English   中英

Aviary SDK问题导致iOS中的应用崩溃

[英]Aviary SDK issue causes app crash in ios

您好,我在我的iOS项目中使用Aviary SDK。 我按照本文档中给出的所有步骤进行操作。现在,我在viewDidAppear中调用以下方法(也可以在viewdidload中尝试)。

- (void)displayEditorForImage:(UIImage *)imageToEdit   {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
    [AFPhotoEditorController setAPIKey:kAFAviaryAPIKey secret:kAFAviarySecret];
});

AFPhotoEditorController *editorController = [[AFPhotoEditorController alloc] initWithImage:imageToEdit];
[editorController setDelegate:self];

[self presentViewController:editorController animated:YES completion:nil];     }

但是当我运行项目应用程序时崩溃了。它不会显示控制器,并且异常在下面

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINavigationBar setAf_backgroundColor:]: unrecognized selector sent to instance 0xcb1b950'

我该如何解决问题。请帮助我。

您确定正确遵循文档吗?

4. Add linker flags

 Update your target's (or project's) build settings to include the following "Other Linker Flags":

-ObjC
-all_load

希望这对您有所帮助。

谢谢乔尼

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM