Navigation
Top
Monday
Feb272012

Facebook Style Sidebar - Howto

 

Right now I'm building an app that would make really good use of the sidebar UI in the Facebook iOS App. I've always wondered how they built that, time to find out. After 15 minutes of Google and GitHub searches, I found the JTRevealSidebar project. There are a few other Facebook style sidebar samples, but this one seems the most mature and actively developed. It took me only 20 minutes to understand what was going on and drop it into my project.

Setup was simple, drop in a few source files and subscribe to the JTRevealSidebarV2Delegate delegate. When the app needs to open a sidebar it will run the proper callback method in your code. Here is an example:

Though its missing some of the extra features Facebook's UI has, this code gets the job done and is going to make my app much more usable. I hope to find time to contribute some upgrades to this GitHub project.

JTRevealSidebar

 

Thursday
Feb232012

Perform Block After Delay

Sometimes I want to run a block of code after some amount of time but I want that block of code to stay in the method I'm calling it from. Seriously, I hate it when code wanders off. Using this category makes it simple to keep a one time use block of code right where you are calling it.

Example Usage

The Code You Need

Friday
Feb172012

RestDroid

RestDroid - A simple rest library for Android.

How would you like to make calling a rest service this easy?

Use it and let me know what you think.