content top

iOS5: Migrating your code to NSJSONSerialization using the Adapter Design Pattern

In iOS 5, Apple introduced NSJSONSerialization, for parsing JSON strings. But, as on date, you might have already developed your app using a third party component like JSONKit or json-framework or TouchJSON and you might not want to migrate your complete code base to NSJSONSerialization. In fact removing or replacing an existing framework is not really an easy thing especially if you have a lot of dependencies. However, moving towards...

Read More

iOS Tutorial: Sending In App Tweets

iOS Tutorial: Sending In App Tweets

In iOS 5, Apple introduced tighter twitter integration with Twitter.framework and Accounts.framework. Most of the latest “social” apps out there use some kind of frameworks to send out tweets from their app. With iOS 5, you no longer need to build your code against all these frameworks. iOS 5′s built in Twitter.framework manages most of these issues automatically. In this tutorial, we will go through how to use the...

Read More

Introducing my book: iOS 5 Programming Pushing the Limits

Introducing my book: iOS 5 Programming Pushing the Limits

iOS 5 Programming: Pushing the Limits iOS 5 Programming Pushing the Limits Developing Extraordinary Mobile Apps for Apple iPhone, iPad, and iPod Touch I’m pleased to announce that I’ve completed my book on advanced iOS 5 programming. The book will be published by Wiley later this year and is available for pre-order from amazon. I co-authored this book with Rob Napier and we started working on this around 6 months ago. Bulk of...

Read More

Easy Debugging with ASIHTTPRequest

Just wrote this quick and dirty method that dumps a ASIHTTPReqeust on console as a curl command. You can add it to your project as a category extension on ASIHTTPRequest or on a subclass (if you have one). 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24   -(NSString*) description { __block NSMutableString *displayString = [NSMutableString stringWithFormat:@"\nRequest\n-------\ncurl -X %@",...

Read More

In App Purchases: Troubleshooting Code=0 “Cannot connect to iTunes Store” (SKErrorUnknown)

When using MKStoreKit or any other equivalent framework or regular In App Purchases’ StoreKit.framework, If you are getting a problem like this, Cannot connect to iTunes Store Code: Error code: 0   Error code 0 is SKErrorUnknown. It probably means connection couldn’t be established from your device to Apple. The number one reason for this is, you are using a jailbroken iPad that updated the hosts file to block traffic to...

Read More

Singleton ain’t bad after all

On the Inter-webs, it’s very easy to find a piece of code that abuses singletons or a blog post that bitches why singletons are bad. Trust me, singletons are not bad. A singleton is a double edged sword. It’s up to you to use it the way it was intended to be used. In this post, I’ll talk about some often encountered problems where singletons are used in a wrong way and then provide you suggestions on how to overcome...

Read More

Using MKStoreKit in your apps

MKStoreKit, as you probably know is a framework for implementing In App Purchases in your app. It supports virtually every feature you could tell and every business model you could (or even Lodsys) ever think of. It supports, Auto-renewable subscriptions, Consumables, non-renewable subscriptions, and good old non-consumables and a whole lot others. The biggest gripe among the developer community is that there is no easy to use, step by step...

Read More
Page 2 of 1312345...10...Last »
content top