Aviary SDK问题导致应用程序在iOS中崩溃
问题描述:
您好,我正在iOS项目中使用Aviary SDK。我遵循这个documentation给出的所有步骤。现在我在viewDidAppear中调用以下方法(也尝试在viewdidload中)。Aviary SDK问题导致应用程序在iOS中崩溃
- (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]; }
但是当我运行该项目申请crashed.it不会显示控制器和异常低于
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINavigationBar setAf_backgroundColor:]: unrecognized selector sent to instance 0xcb1b950'
我该如何解决problem.Please帮助我。
答
你确定按照正确的文档?
4. Add linker flags
Update your target's (or project's) build settings to include the following "Other Linker Flags":
-ObjC
-all_load
希望这对你有所帮助。
感谢, 强尼
感谢ü非常 – Dhara 2014-09-16 09:34:15
@Trinh陈其工作感谢您的帮助 – nivritgupta 2015-02-07 09:51:38
真的感谢解决我的问题。 – atifali 2015-10-22 07:05:25