Automatically Refresh Auth Token using RestKit

When using OAuth for authenticating your users for your app, you simply need to store the auth token (e.g. in NSUserDefaults) and you can make authenticated requests in the future. But what if the auth token expires in the future and you need to refresh it? When using RestKit…

PromiseKit: Promises for iOS

Most of the apps today have to deal with lot of asynchronous stuff. If you do a lot of asynchronous NSURLRequests, Restkit's getObjectsAtPath:parameters:success:failure:, or even simple asynchronous UI actions (e.g. UIAlertView and UIActionSheet), I am sure you often see the code becoming ugly, wrapped inside asynchronous…