注:只是其中一种情况,做记录用,不喜勿喷。
背景:工程中导入使用C、C++等编写的库或者文件。
现象:
解决方法:
在头文件中使用
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import"xxxx.h"
#endif
注:只是其中一种情况,做记录用,不喜勿喷。
背景:工程中导入使用C、C++等编写的库或者文件。
现象:
解决方法:
在头文件中使用
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import"xxxx.h"
#endif