content top

iPhone Tutorial – In-App Purchases

iPhone Tutorial – In-App Purchases

Last week, Apple announced that in-app purchases will be available for free apps as well. This could probably free developers from creating “lite” and “pro” versions of the app and allow developers to “unlock” features inside the app and create business models that the AppStore haven’t seen. This model could be a great boon for developers like us to upsell our apps (provided they are of good...

Read More

bit.ly wrapper for Objective-C/iPhone

Continuing from my part 1, in this section, we will discuss about how to use this helper in your own application. Source Code Download the source code here MKBitlyHelper 1.0.zip Documentation With just three lines of code, you can shorten your URL using this wrapper. Initialize the helper class with your loginname and apikey. bitlyHelper = [[MKBitlyHelper alloc] initWithLoginName:@"yourlogin"...

Read More

Formatting Dates relative to Now – Objective C (iPhone)

Many a times, in an iPhone application, you might need to format the date relative to today. This code snippet will help you do it. + (NSString *) formattedDateRelativeToNow:(NSDate *)date { NSDateFormatter *mdf = [[NSDateFormatter alloc] init]; [mdf setDateFormat:@"yyyy-MM-dd"]; NSDate *midnight = [mdf dateFromString:[mdf stringFromDate:date]]; [mdf...

Read More

Consuming a RESTful Service (bit.ly) in an iPhone Application

Consuming a RESTful Service (bit.ly) in an iPhone Application

bit-ly-rest-api-objective-c Introduction Of late, many programmers who develop for Windows/Linux have moved to iPhone because of it's runaway success. Among the most successful apps on the Apple AppStore, first comes games (yeah I can hear you, fart apps!!!). Next comes apps like Tweetie and others those consume a web service (REST or otherwise). Games are pretty difficult get started especially if you aren't a game programmer. However,...

Read More

iPhone Tutorial – In-App Email

iPhone Tutorial – In-App Email

Sending an email from your iPhone application is something which you normally want to do it asynchronously. But unfortunately, prior to iPhone 3.0, the only way to send email was using mailto:// url format. i.e, [[UIApplication sharedApplication] openURL: @"mailto:john.appleseed@apple.com"]; The technique was clumsy for one reason. It quits your app and launches mail. To our rescue, comes in-app email. In-App...

Read More
Page 2 of 3123
content top