我遇到问题。 我试图做一个简单的应用程序来查看与UIPageViewController
pdfs,但我无法得到它的工作。使用UIPageViewController的简单pdf查看器
我试图使用下面的github页面上列出的项目。
https://github.com/jackhumphries/UIPageViewController-PDF
但是我使用StoryBoards
工作,但我不能让它与StoryBoards
工作。
我创建了下面的代码按钮:
NSString *path = [[NSBundle mainBundle] pathForResource:@"mhm" ofType:@"pdf"];
PageViewController *page = [[PageViewController alloc] initWithPDFAtPath:path];
[self presentViewController:page animated:YES completion:NULL];
我收到以下错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PageViewController", referenced from:
objc-class-ref in PDFPageViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我删除的最后两行,我的项目是工作,但你可以想像我的pdf不显示。
我试图在我的故事板中创建单独的视图,但我无法让它工作。
你加QuartzCore框架,您的应用程序的项目? – Jona
@JonathanD是的,我做过,我juist遵循github页面的所有步骤。它没有故事板,但它与故事板不同。侯侯有个想法吗?它是由最后两行引起的 –