XCode - Images and XML Deployment

…衆ロ難τιáo~ 提交于 2019-12-11 19:57:35

问题


My company is currently writing an iOS app whereby we will display some of the projects which we have done. I understand that all the Images and XML files will be compiled into the App Package file.

Would like to know if it is possible to call a web service and update the image and XML files whenever we have updates to our projects. Are we able to access the app package contents directly when we want to do update instead of recompiling everything? This is because we don't think we should compile the whole application when we just want to change one of the images, for example.

Please advise. Thanks.


回答1:


The answer to your question about accessing the package contents is no, but that is OK because you can work around it.

The way I would this when the app is launched for the first time on a device I would copy the images and xml files to the Documents folder. Then whenever you open the app you can check to see if the assets in the Documents folder need updating, and if they do, then you can download the assets from the server into your Documents folder.



来源:https://stackoverflow.com/questions/9990926/xcode-images-and-xml-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!