简体   繁体   English

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

[英]Aviary SDK issue causes app crash in ios

Hello I am using Aviary SDK in my iOS project. 您好,我在我的iOS项目中使用Aviary SDK。 I followed all steps given in this documentation .Now I call below method in viewDidAppear(also try in viewdidload). 我按照本文档中给出的所有步骤进行操作。现在,我在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];     }

But when I run the project application is crashed.it will not displaying controller and exception is below 但是当我运行项目应用程序时崩溃了。它不会显示控制器,并且异常在下面

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

how can i solve problem.Please help me. 我该如何解决问题。请帮助我。

Are you sure that following the doc correctly? 您确定正确遵循文档吗?

4. Add linker flags

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

-ObjC
-all_load

Hope this help you. 希望这对您有所帮助。

Thanks, Jony 谢谢乔尼

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

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