NSBundle pathForResource is NULL 取不到值

错误提示:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'

解决方法:

在 Bulid Phases里的Copy Bundle Resources里添加自己所需要的文件

posted @ 2016-03-02 20:28  一斗才  阅读(227)  评论(0编辑  收藏  举报