环境xcode模拟器。
我在iOS模拟器沙盒的document中新建了一个热更的文件夹HotUpdate,这个文件夹里就是res文件夹,包含raw-assets/resource/texture/2.jpg。
在程序运行中用jsb.fileUtils.setSearchPaths指定该HotUpdate文件夹,并且设为搜索数组的第一个。
用jsb.fileUtils.isFileExist(cc.urlraw(“resources/texture”)),已能检测到该文件夹的存在
接下来的问题就是我用cc.loader.loadRes(“texture/2”,cc.SpriteFrame,function(err,spriteFrame))加载该图片,提示cc.SpriteFrame in “texture/2” does not exist.
简单的来说就是动态更新后指定了SearchPath,loadRes却加载不了,是缺了其它步骤还是什么原因?有人能帮忙吗?