How to make ui responsive all the time and do background updating?

前端 未结 3 584
囚心锁ツ
囚心锁ツ 2020-12-01 13:28

I am creating a application which displays 8 thumbnails per page and it can have n pages. Each of these thumbnails are UIViews and are added to UIScrollView. However i have

3条回答
  •  不知归路
    2020-12-01 14:09

    I was having a similar problem.
    What i did was at an instance i kept only 3 pages in the memory and cleared remaining all.
    If suppose there are 3 screens s1, s2, s3. And the user is viewing s2. Whenever he scrolls to s3 i will remove s1 and load a new page s4.
    So that the users will have a better experience. And less memory will be occupied.

提交回复
热议问题