#import <PDFKit/PDFKit.h> 找不到对应该的文件处理办法

来源:互联网 发布:桌面 滚动屏软件 编辑:程序博客网 时间:2024/04/27 23:01

在项目中用到了PDFView, 派生一个PDFView子类的,头文件中自动加上了

#import <PDFKit/PDFKit.h>

结果提示 no file found


处理办法:将#import <PDFKit/PDFKit.h> 替换为以下头文件即可:

#import <Quartz/Quartz.h>


因为在Quartz.h文件中有以下内容:


/* Quartz.h


   Copyright (c) 2004-2015 Apple Computer, Inc.

   All rights reserved. */


#import <QuartzCore/QuartzCore.h>

#import <QuartzComposer/QuartzComposer.h>

#import <QuartzFilters/QuartzFilters.h>

#import <PDFKit/PDFKit.h>

#import <ImageKit/ImageKit.h>

#import <QuickLookUI/QuickLookUI.h>


0 0