ios framework中的图片如何访问

2021-08-13 23:10:31

特别简单,在主工程设置中,只要resource parse加入那个图片文件夹或者图片目录就可以正常访问了

 网上的教程,不是让制作bundle就是把framework加入这个resource parse里面。


制作bundle 我是按照教程没有成功


framework这个倒是成功了,但是发布软件的时候,系统验证的时候有错误,类似与framework应该在自己的文件夹

这样的  it should be under ''Frameworks


第二个报错是  CFBundleExecutable of supported bundles .更好。


一开始没有仔细读英文,以为是静态framework和动态framework的问题,就一直再解决这个问题,后来发现是因为framework不应该存在哪个位置。


所以继续解决framework的问题,就开始研究bundle 没能成功。


发现只要把图片加入那个路径就好了。


哎,ios和java以及其他语言的不同,java是靠目录区分,ios多为指向区分。代码或者图片不在工程能也可以。

  • 2017-11-01 01:30:45

    解决第三方包内jar包冲突

    这个问题就是因为引入jar包的冲突,这时我们可以在build.gradle中添加如下代码,下方单独的是添加的代码

  • 2017-11-06 01:00:17

    撤销git add

    如何撤销git add,不小心执行了git add . 操作,但是又不能提交所有的文件,因为对应不同的分支,现在怎么样可以将git add 撤销回来

  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.