UITableView images - save two images or resize?

I have a UITableView with cells. A cell contains an image tag, tags, and tags. Then I have a DetailView where I upload a large size of the same image that is in the cell. And my question is: is it better to save 2 images (small and large) or resize them? thanks for the replays.

+4
source share
2 answers

Generally, I think you should use two different images.

When dealing with potentially large lists, it’s usually good to understand resources. Therefore, if you are viewing a list, you may need to upload 100 images. However, a detailed review is likely to be shown much less frequently. Therefore, upload a large image if the user really wants to see it.

Since your application runs on the iPhone, you also need to consider its “limited resources” and the fact that the user can pay for data transfer.

+2
source

If you make loading a UITableView a large number of large images, it will scroll very poorly because large images take longer to allocate and process. It is much better to save two images so as not to interfere with the user with a slow application.

+1
source

Source: https://habr.com/ru/post/1383094/


All Articles