If you have been following me on Twitter or reading MKBlog, you would already be knowing about MKNetworkKit. I wrote a introductory post on MKNetworkKit couple of months ago and later explained in a more detailed post on how to use it in other sophisticated scenarios. From feedback so far, Image Caching was one aspect of MKNetworkKit that developers didn’t understand pretty well. In this post, I’ll try to explain how to use...
Read MoreiOS Tutorial: Image Cache and Loading Thumbnails using MKNetworkKit
Migrating your code to Objective-C ARC
Recently, Apple introduced several new developer stuff including Xcode 4, ARC, LLVM Compiler 3.0 and iOS 5. From some of the questions on Stack overflow, I could understand that, most of the ARC related confusions arise due to the fact that, developers don’t know if “ABC” is a feature/restriction of LLVM 3.0 or iOS 5 or ARC. Retain cycles, auto-release pools, @autorelease blocks, oh man! So many new things? What am I going...
Read MoreiOS Tutorial: Advanced Networking with MKNetworkKit
Couple of weeks ago, I wrote a clean, fast networking toolkit for iOS and Mac written for the LLVM Compiler 3.0 with ARC. Reception was very good that it was the “most-watched” repository on Github last week. Early adopters have sent me innumerable emails on how fast their network operations are, and how responsive their app is after integrating MKNetworkKit. MKNetworkKit is faster (and it makes your app feel smoother and faster...
Read MoreiOS Framework: Introducing MKNetworkKit
How awesome would it be if a networking framework automatically takes care of caching responses for you? How awesome would it be if a networking framework automatically remembers your operations when your client is offline? You favorite a tweet or mark a feed as read when you are offline and the Networking Framework performs all these operations when the device comes back online, all with no extra coding effort from you. Introducing...
Read MoreSoftware philosophy: Release early, release often vs polished releases
Release early, release often is a philosophy where you release the product as soon as possible and rapidly iterate it to perfection by listening to your customers. A polished release, on the other hand is where your product, in its initial version is solid, lacks obvious bugs and has just enough features to satisfy a majority of your consumers. Most software companies adopt either one of this and that choice is not superficial. In fact, it...
Read MoreiOS Code: MKiCloudSync – Sync your NSUserDefaults to iCloud with a single line of code
Just wrote this class, MKiCloudSync (100 lines of code) that auto syncs your NSUserDefaults to iCloud. How to use? All you need to do is to enable iCloud key value store entitlements, copy the files and forget about the rest. Step 1: Enable iCloud entitlements for your app. This is easily done in Xcode 4.2.1 by opening your target settings and checking “Enable Entitlements” from the summary tab. This is illustrated...
Read MoreEasy Debugging with NSMutableURLRequest
This post is a sequel to one of my previous post, Easy Debugging with ASIHTTPRequest. I previously showed you a code snippet for logging ASIHTTPRequest as curl commands on command line. I’ve updated that code for NSMutableURLRequest, which means, you can use it for almost any third party networking kits, including the recently famous AFNetworking. The Drive The main necessity for this was, I always used to miss some of the parameters...
Read More