AssetTablePicker behaves like iOS Photos: loads scrolled to the bottom and loads quickly #24

Closed
wants to merge 9 commits into
from

Conversation

Projects
None yet
4 participants
@ehopealot
  • Loads the picker so that the tableview is initially scrolled to the bottom
  • Loads the last ~25 images in the library first, so the picker screen comes up
    snappily even for very large libraries. This makes the image picker behave
    just like iOS Photos, as far as I can tell.

ehopealot added some commits Jul 6, 2012

Stops showing the partially loaded photos, since that causes a jarrin…
…g jump to the bottom when the full photo list loads
AssetTablePicker behaves like iOS Photos: loads scrolled to the botto…
…m and loads quickly

* Loads the picker so that the tableview is initially scrolled to the bottom
* Loads the last ~25 images in the library first, so the picker screen comes up
  snappily even for very large libraries. This makes the image picker behave
  just like iOS Photos, as far as I can tell.

@ehopealot ehopealot closed this Jul 18, 2012

@ehopealot ehopealot reopened this Jul 18, 2012

ehopealot added some commits Jul 6, 2012

AssetTablePicker behaves like iOS Photos: loads scrolled to the botto…
…m and loads quickly

* Loads the picker so that the tableview is initially scrolled to the bottom
* Loads the last ~25 images in the library first, so the picker screen comes up
  snappily even for very large libraries. This makes the image picker behave
  just like iOS Photos, as far as I can tell.
Includes the changes to make the picker load the first 100 images,
and also resolves problem of crashing if you pick images before the whole
gallery has loaded

@ehopealot ehopealot closed this Jul 18, 2012

@ehopealot ehopealot reopened this Jul 18, 2012

@jimzhao2012

This comment has been minimized.

Show comment Hide comment
@jimzhao2012

jimzhao2012 Jul 24, 2012

-(void)preparePhotos
is called in background thread, can not update UI, plz use dispatch_async.. force change to main thread to to such a job.

-(void)preparePhotos
is called in background thread, can not update UI, plz use dispatch_async.. force change to main thread to to such a job.

@omricohen

This comment has been minimized.

Show comment Hide comment
@omricohen

omricohen Nov 5, 2012

looks good @jimzhao2012 he is calling performSelectorOnMainThread in that function, allowing for UI manipulation...

looks good @jimzhao2012 he is calling performSelectorOnMainThread in that function, allowing for UI manipulation...

@jvanmetre

This comment has been minimized.

Show comment Hide comment
@jvanmetre

jvanmetre Apr 2, 2013

Contributor

We have decided to go in a different direction by not creating as many UIImageViews for the tableView, but any version after 0.0.3 should be much snappier.

Contributor

jvanmetre commented Apr 2, 2013

We have decided to go in a different direction by not creating as many UIImageViews for the tableView, but any version after 0.0.3 should be much snappier.

@jvanmetre jvanmetre closed this Apr 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment