Archive for 2010
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 [...]
Display iPhone Movies in Portrait Mode (Updated)
In the previous post, Getting MPMoviePlayerController to Cooperate with iOS4 and Earlier Versions of iPhone SDK, I demonstrated how to work with the most recent changes in iPhone OS 3.2 and 4.0 MPMoviePlayerController to enable one application to play movies regardless of the OS version on the device. In this post I want to show [...]
Getting MPMoviePlayerController to Work with iOS4, 3.2 (iPad) and Earlier Versions of iPhone SDK
The API and overall approach for working with MPMoviePlayerController has changed just enough in the 3.2 SDK (iPad) and iOS4 SDK to cause working applications in earlier releases to be problematic when running on later SDKs. In this post I’ll walk through a short example of a movie player application that will work with 3.x, [...]
Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment Target
Editor’s Note:You can download and install any previous release of Xcode if you would like to roll back to an earlier version. You can get the specifics here: Download and Install Older Versions of Xcode. If you’ve installed Xcode 3.2.3 you quickly became aware that the only SDK’s packaged with this version are 4.0 and [...]
NSNotification, UserInfo and Object Methods
When working with an NSNotification object, you’ll want to familiarize yourself the userInfo dictionary, which provides access to any additional objects that may be of interest to the receiver. Understanding the object method may also be helpful if you are using the same notification on more than one object.
Announcing iPhone/iPad DevCon 2010 : Sept 27th through 29th in San Diego, California
BZ Media, publisher of SD Times, is proud to announce the iPhone/iPad DevCon being held September 27th – 29th, 2010 in sunny San Diego, California. iPhone DevCon has over 45 sessions to choose from, covering everything from design and development to marketing of iPhone and iPad applications. Beyond the comprehensive selection of workshops and classes, [...]
Add Rounded Corners and Border to UIWebview
Beyond simply displaying websites, UIWebview can be a nice alternative when you need to display formatted text, not to mention the option of incorporating JavaScript which presents some very interesting scripting and UI opportunities. I’ve found webviews handy for presenting help information, displaying HTML downloaded from remote servers as well as integrating custom ad banners [...]
Formatting Numbers – NSNumberFormatter Examples
The previous post on how to Get Total and Free Space on the Mounted File System is a good segue to this post, as the formatting of the output from the previous code example left a little to be desired, see the figure below. Without delimiters to mark off thousands, it’s a little difficult to [...]








