How to Make a Gesture-Driven To-Do List App Like Clear: Part 2/3

This is a post by Tutorial Team Member Colin Eberhardt, CTO of ShinobiControls, creators of playful and powerful iOS controls. Check out their app, ShinobiPlay. You can find Colin on Google+ and Twitter This is the second in a three-part tutorial series that takes you through developing a to-do list app that is completely free […] By Colin Eberhardt.

Leave a rating/review
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where To Go From Here?

Here’s the example project with all of the code up to this point of the tutorial series.

I hope you have enjoyed the second installment of this three-part series!

Give yourself a big pat on the back for finishing – the custom table view implementation required quite a bit of code in order to remove the rendering glitch that was unavoidable with UITableView. However, it is interesting to see that a re-implementation of UITableView is entirely possible.

Before wrapping up this tutorial, I want to say a few things about the class design so far. For the sake of simplicity, some of the responsibilities are a bit mixed up, and in addition, the encapsulation is a poor in places.

For example, it’s a tad ugly that the view controller connects directly with the cell delegate in order to handle edit/delete operations. A much more elegant solution would be to use the table as the cell delegate, then propagate these events via a table delegate.

Another example of poor encapsulation is that the table view exposes its scroll view. It would be much better to have the table view "wrap" the scroll view, exposing only those method that are required, as explained in the Adapter Pattern.

I’ll leave that to you as an additional exercise. ;-]

The third and last installment of this tutorial series is where the real fun happens. It will be pinch and pull-down gesture time, my friends!

I look forward to hearing from you in the forums!


This is a post by Tutorial Team Member Colin Eberhardt, CTO of ShinobiControls, creators of playful and powerful iOS controls. Check out their app, ShinobiPlay.

Colin Eberhardt

Contributors

Colin Eberhardt

Author

Over 300 content creators. Join our team.