Hello,
I have an image which I get from a server ie. via an url. It works fine so far. My problem is - the user navigates through some tableViews and ends up on a detailed view. This view shows an image for this current view. Everytime when this view is pushed, the img is downloaded and that it not very good practice I suppose. The img is added as subview to the current viewcontroller and then released. I think the memory aspect is ok, but it seems a bit ineffective somehow, doing the same thing over and over. How could I do this alternatively? I have thought about dowloading all img on startup and save it into a dictionary or something like that, but the app contains alot of different views and also different detail images. This means such an action would take some time on startup and would also mean that some kind of sorting/getting the correct img later on would have to be done. However, is it also possible that the user only wants to display some of the detailed views per app-run and in such a case is the dowload on startup unneccesary?... Any suggestions on a clever solution on this?
Thanks in advance!
MACloop
I have an image which I get from a server ie. via an url. It works fine so far. My problem is - the user navigates through some tableViews and ends up on a detailed view. This view shows an image for this current view. Everytime when this view is pushed, the img is downloaded and that it not very good practice I suppose. The img is added as subview to the current viewcontroller and then released. I think the memory aspect is ok, but it seems a bit ineffective somehow, doing the same thing over and over. How could I do this alternatively? I have thought about dowloading all img on startup and save it into a dictionary or something like that, but the app contains alot of different views and also different detail images. This means such an action would take some time on startup and would also mean that some kind of sorting/getting the correct img later on would have to be done. However, is it also possible that the user only wants to display some of the detailed views per app-run and in such a case is the dowload on startup unneccesary?... Any suggestions on a clever solution on this?
Thanks in advance!
MACloop