如何在ios中导入分层库?

时间:2016-03-23 08:33:23

标签: ios objective-c libraries rtsp

我是IOS的新手,我想在我的项目中添加一个外部库。

Libary位于另一个文件夹中,即ffmpeg/include/libavcodec/avcodec.h. 我在Project中添加了Libavcodec文件夹,并包含Library Like。

#include "libavcodec/avcodec.h" 

但是它给出了错误

Error: libavcodec/avcodec.h not found...

提前致谢....

1 个答案:

答案 0 :(得分:0)

只需将库中的库拖放到xcode中即可。然后你可以在任何一个viewcontroller中导入文件。