我遇到問題。 我試圖做一個簡單的應用程序來查看與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頁面的所有步驟。它沒有故事板,但它與故事板不同。侯侯有個想法嗎?它是由最後兩行引起的 –