在项目中用到了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>
转载请注明原文地址: https://ju.6miu.com/read-659455.html