Skip to content

Working Range example#89

Closed
rnystrom wants to merge 1 commit intomasterfrom
objc-workingrange-example
Closed

Working Range example#89
rnystrom wants to merge 1 commit intomasterfrom
objc-workingrange-example

Conversation

@rnystrom
Copy link
Copy Markdown
Contributor

Changes in this pull request

Adding a working range example to the example app. This example:

  • Displays a list of images downloaded from unsplash.it
  • Create 20 uniquely-random sized objects
  • When section controllers enter the range, create a data task to download the image
    • When finished, store image in downloadedImage
    • Set in cell if cell is visible
    • Don't create task if already downloaded or task created
  • Cancel task when section controller is destroyed
  • Show a spinner cell while downloading the image

Fixes #84

Pull request checklist

@rnystrom
Copy link
Copy Markdown
Contributor Author

Screenshots of the demo:

Downloading images:
simulator screen shot oct 20 2016 12 11 50 pm

Images finished:
simulator screen shot oct 20 2016 12 11 52 pm

@rnystrom rnystrom force-pushed the objc-workingrange-example branch from c0ccf73 to 59ef206 Compare October 20, 2016 04:33
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rnystrom updated the pull request - view changes

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@rnystrom rnystrom deleted the objc-workingrange-example branch October 20, 2016 06:31
@jessesquires jessesquires added this to the 2.0.0 milestone Oct 20, 2016
@jessesquires
Copy link
Copy Markdown
Contributor

nice 🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants