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
  • 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

@ehopealot ehopealot Launches image picker controller with image picker scrolled to bottom 0ce25d2
@ehopealot ehopealot Stops showing the partially loaded photos, since that causes a jarrin…
…g jump to the bottom when the full photo list loads
5fc678d
@ehopealot ehopealot Makes the picker snappy like regular iOS Photos by preloading the las…
…t ~25 images before loading the rest
eb76b91
@ehopealot ehopealot Adds a comment explaining what is going on efd86fc
@ehopealot ehopealot 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.
9b50ab7

ehopealot closed this Jul 18, 2012

ehopealot reopened this Jul 18, 2012

ehopealot added some commits Jul 6, 2012

@ehopealot ehopealot 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.
a1eddff
@ehopealot ehopealot Resolves crash when you press done before all the photos have loaded 7ae475f
@ehopealot ehopealot load the first 100 rather than first 25 photos da0d7f5
@ehopealot ehopealot 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
3295e2b

ehopealot closed this Jul 18, 2012

ehopealot reopened this Jul 18, 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.

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

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 closed this Apr 2, 2013

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