content top

iPhone Tutorial – UISearchDisplayController with NSPredicate

Though UISearchDisplayController is seemingly easy (and yes it’s easy), apart from the sample source code, there isn’t much documentation available from Apple. I won’t be posting code for this tutorial, (as most of them come from Apple’s own source code), however, the tutorial will contain code fragments that I wish to highlight and those I changed for improving the search using NSPredicate Step 1: Create the...

Read More

iPhone Tutorial – In-App Purchases

iPhone Tutorial – In-App Purchases

Update: MKStoreKit 4.0, an updated version of the one presented here is available. Please check it out and use 4.0 instead of this. 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...

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
Page 6 of 6« First (1)...23456
content top