Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Set images from URL #31

Open
cerupcat opened this issue Dec 16, 2013 · 3 comments
Open

Set images from URL #31

cerupcat opened this issue Dec 16, 2013 · 3 comments
Assignees

Comments

@cerupcat
Copy link

Is it possible to set a background image (or other image) from an external URL so that it's possible to update/change images on the fly as well without having to have them already be packaged in the app? If not, would there be a recommended way to do something like this - for example, download a new bundle from an external location and then use the bundle to set the image?

@ghost ghost assigned robertwijas Dec 16, 2013
@robertwijas
Copy link
Owner

I hope you're not planing to reload those images on released app, are you?

I was thinking about adding similar feature to support rapid prototyping with PS+Slicy+UISS combo. Is that what you're looking for?

@cerupcat
Copy link
Author

Our use case is not very common. We have an internal enterprise app (doesn't require AppStore approval) and would like to be able to 'update' the apps style/images (and possibly layout) at any time without requiring everyone to install a new version of the app. We'd probably want the image to cache (based on name or size, etc) so that they don't need to download every time.

@robertwijas
Copy link
Owner

I might add this to 2.1, but 2.x will be iOS7 only.

The easiest way to add this feature is to add your custom preprocessor that looks for URLs, downloads assets to its internal cache and replaces URLs with local paths.

Warning: live reload uses private API, but since you're not going through the App Store you should be fine. Take a look at the code that depends on UISS_DEBUG.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants