Infinite Scrolling UICollectionView with Asyncronously Loading

The other day I set out to create an iOS UICollectionView that allowed a user to scroll vertically through an infinite-ish list of items where the data came from a paginated back-end web service. Most of the examples out there deal with synchronous in-memory. I needed an asynchronous paginated example.

I’m new enough to iOS development that solutions don’t yet roll off the wire of my keyboard, so I still google for how others attack a problem and adapt their strategy to fit my needs.

It seemed like it took me all day to track down the pieces I needed to put together a solution. But I found enough to put together a prototype.

If you need something like this, I’ve pushed my prototype up to GitHub and hopefully it’ll give you enough hints to get started on your own implementation.

I’m open to feedback. Post any suggestions/alternative ideas to the github repo.

Where do I get it?

HERE

Hope you find this useful.

Read More

Infinite Scrolling UICollectionView with Asyncronously Loading

The other day I set out to create an iOS UICollectionView that allowed a user to scroll vertically through an infinite-ish list of items where the data came from a paginated back-end web service. Most of the examples out there deal with synchronous in-memory. I needed an asynchronous paginated example.

I’m new enough to iOS development that solutions don’t yet roll off the wire of my keyboard, so I still google for how others attack a problem and adapt their strategy to fit my needs.

It seemed like it took me all day to track down the pieces I needed to put together a solution. But I found enough to put together a prototype.

If you need something like this, I’ve pushed my prototype up to GitHub and hopefully it’ll give you enough hints to get started on your own implementation.

I’m open to feedback. Post any suggestions/alternative ideas to the github repo.

Where do I get it?

HERE

Hope you find this useful.

Read More

rake, psake, grunt, gulp, jake, make, cake, brunch, ant, bash, maven, or fabric. as long as you putOnAHelmet

A standard task I began placing in my projects lately is one that easily integrates with my build tool of choice (rake, psake, etc…) and when run, installs a git pre-commit hook into my local copy of the repo that will run tests before code is committ. I’ve fancied calling the task putOnAHelmet.

Come checkout a small little github repo I started to keep track of various versions of this and feel free to open an issue or send a pull request with another one!

I don’t want to get into details about pre-commit hooks and how you should author them in this post (maybe we can expand the language in the repo’s readme…). You can also check out other writings… But one of the biggest problems I have with them is gits in-ability to easily keep track of pre-commit hooks much like it can with the rest of the projects source.

Now it’s true that different people need the ability to customize these, but a general “running of tests” before committing is a great first step and I’ve found these set of tasks the easiest way to carry them from repo to repo.

Hope others find this useful!

Happy committing!

Read More