content top

iPhone Tutorial: Better way to check capabilities of iOS devices

The iPhone OS started off with a single device, the original iPhone, ala, iPhone 1,1. In the last three years, Apple has been innovating hard and introduced multiple devices running the same operating system with different capabilities. For example, the original iPod touch, iPod 1,1 wasn’t able to record audio input, and till date iPod Touch cannot vibrate as a result of an alert. There are many such subtle differences between...

Read More

iPhone Tutorial: Scheduling Local Notifications using a Singleton class

iPhone Tutorial: Scheduling Local Notifications using a Singleton class

In iOS 4, Apple introduced a new way to send “push notifications” to your app without having a dedicated server and associated server side coding. The technique is called as scheduling local notifications. While this tutorial is about how to schedule local notifications, I would also explain how a powerful abstraction concept, Singleton design pattern could make this easier when adding local notification support to your app. If...

Read More

XCode Tip: Objective-C Singleton Class Template

XCode Tip: Objective-C Singleton Class Template

I have a habit of creating Singleton pattern classes for nearly every application I write. I manage the Settings Bundle (or any app settings, thru a Singleton class), my MKStoreManager for doing in-app purchases is a Singleton class. Even in Apple’s own code you can see some Singletons like UIApplication, Reachability (from the Reachability example), UIDevice and such. You normally access them through an exposed instance of the class....

Read More

iPhone Tutorial: Elegant way to send formatted In-App email

By now, most of you know how to send emails using the Message UI framework without quitting the app. In this tutorial, we will briefly discuss the techniques for sending a HTML formatted email with user generated content. Though sending a HTML formatted email is as easy as setting the option to HTML [picker setMessageBody:emailBody isHTML:YES]; There are some cases that this method that this method doesn’t take care of. In...

Read More

How to deploy on iPhone OS 3.1.3 without downloading the 2GB SDK

Like most of you, I too downloaded the 3.2 beta and was playing around with some iPad stuff. Today when iPhone OS 3.1.3 is released, without second thought, I immediately updated my iPhone. My iPhone being a development device, I understood that I can no longer use the current XCode installation to run apps on device. When I launched XCode, the Organizer reported, “The version of iPhone OS on “ABC’s iPhone” does not match any of...

Read More
Page 1 of 3123
content top