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 MoreEasy 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 MoreIn 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 MoreMKStoreKit 4.0 – Supporting Auto Renewable Subscriptions
MKStoreKit started off in a pet project a couple of years ago and I wrote the first version in 2009. Since then, it has seen tremendous adoption rates that, it has been the “go-to” framework for implementing In-App purchases in any iOS app today. On iOS 4.3, Apple added a new type of subscription framework called, auto-renewable subscriptions. Today, I’m adding this support to MKStoreKit along with several new features. If...
Read MoreiOS Control: MKHorizMenu
Ok, I’m getting a bit aggressive here. I just finished a custom control yesterday, MKEntryPanel, and now here I’m with MKHorizMenu. MKHorizMenu is a replacement for the Three20 famous, horizontal menu bar found in apps like USA Today. It can be used in cases when you have to display your content based on a specific sub category. The reason why I started writing this control instead of using Three20 was that, I wanted to use just...
Read More