Archive for 2010
How to Prevent Your Application from Being Placed into the Background
By default, when running on a device that supports multitasking, if the user quits the application (pressing the Home button), the application will be notified and moved to the background. This is nice as the response time when the user requests the application again is generally very quick, not to mention the application resumes in [...]
HTTP Basic Authentication – Accessing Password Protected Servers
It’s not uncommon for a server to require credentials for access. A common example is a password protected directory on a web-server that will prompt for a username and password before allowing access. When using a NSURLRequest object to access a server, the delegate methods of NSURLConnection offer a means to be notified when an [...]
iOS Open Source : Heads Up Display with MBProgressHUD
When the iPhone SDK was released, just over 2 years ago, open source projects specifically targeting the iPhone OS were few and far between. Over the past year there has been a significant uptick in iPhone/iOS open source projects, and with that, I’d like to share various projects as I come across them. Should a [...]
Obfuscate / Encrypt a String (NSString)
Apple Keychain Services offer a secure means to store sensitive information. Through the keychain, all the hardwork is managed for you to store and retrieve content. As powerful as the keychain services are, I was recently tinkering with some code to see if I could obfuscate content within an application. I had a few strings [...]
Voices That Matter iPhone Developers Conference – Philadelphia PA – October 16th and 17th, 2010
Pearson Education just announced the Voices That Matter iPhone Developers Conference to be held October 16-17, 2010 in Philadelphia. As with all previous Voices That Matters iPhone events, you will have an opportunity to learn from industry leaders who literally “Wrote the Books” on iOS Development. This two-day conference features a wide range of sessions, [...]
Capture iPhone Simulator Screenshots – Revisited – iPhone Simulator Cropper
A colleague on a recent iPhone project was looking for a tool to capture a series of screenshots for an upcoming application demo. In a Google search he first bumped into a post I wrote back in February of 2009: Capture iPhone Simulator Screenshots – Open Source Screen Capture Tool, a nice Mac tool for [...]
Truncate a String and Append an Ellipsis, Respecting the Font Size
A number of the UI related controls will automatically truncate and append ellipsis with no effort required on your part. For example, with UILabel you can specify the linebreak mode to indicate how you would like the system to manage wrapping and truncating the label text. However, they are times when having a method to [...]
Download and Install Older Versions of Xcode (Xcode Previous Releases)
As a general rule of thumb, it’s best to stick with the latest release of Xcode. That said, there are times when running an older release can be a good thing. You can download older versions of Xcode by logging into Apple Developer Connection – Downloads and ADC Program Assests (http://connect.apple.com) – You will need [...]
How to Play Movies from the Application Bundle or from a Remote Server (URL)
In the previous two posts I wrote about how to create a movie player that would work across OS versions, as well as how to play a movie in portrait mode (on 3.2 and above) : Display iPhone Movies in Portrait Mode and Getting MPMoviePlayerController to Cooperate with iOS4, 3.2 (iPad) and Earlier Versions of [...]


