CATiledLayer 不适用于我的 iOS5 项目
我创建了新的单视图应用程序(使用 iOS 5 sdk 和 Xcode 4.2 开发),该应用程序现在由应用程序委托、视图控制器、scrollView(带有 CATiledLayer)组成。 Storyboard 包含 ViewController
,其中包含 UIScrollView
,该类是 ScrollView
(我创建的类)。我的目标是显示大型 PDF 文件,并进行缩放等。我的项目基于苹果的缩放 pdf 示例。当我尝试在 iPad 上运行我的应用程序时,它在链接期间崩溃并向我显示此错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CATiledLayer", referenced from:
objc-class-ref in TiledPDFPage.o
那么有人知道,如何避免此错误吗?问题是否有可能是我没有在代码中而是在故事板中创建滚动视图?
I have created new single view application (developing with iOS 5 sdk and Xcode 4.2), the app is now consisted of app delegate, view controller, scrollView (with CATiledLayer). Storyboard contains ViewController
that contains UIScrollView
which class is ScrollView
(class that I have created). My goal is to display large PDF files, with zooming and etc. I based my project on zooming pdf sample from apple. When I try to run my app on iPad it crashes during linking showing me this error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CATiledLayer", referenced from:
objc-class-ref in TiledPDFPage.o
So does anyone know, how to avoid this error? Is it possible that the problem is in that I didnt create the scrollView in code but in storyboard??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否记得链接 QuartzCore 框架?
您可能在某个地方有这样的导入(可能在您的
TiledPDFPage.m
中):如果是这样,您也必须链接到 QuartzCore 框架中。
QuartzCore.framework
是否已在列表中。如果没有,请继续。Did you remember to link the QuartzCore framework?
You probably have an import like this somewhere (Probably in your
TiledPDFPage.m
):If so you have to link in the QuartzCore framework too.
QuartzCore.framework
is already in the list. If not, continue.QuartzCore.framework
(you may have to expand the IOS 5 folder).