pathForResource返回(null) 无法读取plist文件

NSBundle *bundle = [NSBundle mainBundle]; 
NSString *pathOfPlist = [bundle pathForResource:@"navmenu" ofType:@"plist"]; 

方法:
项目 -> Build phases -> CopyBundleResources
添加navmenu.plist

    原文作者:Dean
    原文地址: https://segmentfault.com/a/1190000000748802
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞