[[NSBundle mainBundle] pathForResource: ofType:]路径为空可能的原因
:
直接拖到工程里面的文件,实际上是没有加载到mainBundle中的,要添加到mainbundle里面还需要在Build Phases中Copy Bundle Resources 中将拖进来的文件添加上去才能使用
iOS开发中 [[NSBundle mainBundle] pathForResource: ofType:]路径为空的问题
最新推荐文章于 2024-06-15 20:17:30 发布