Rodney Aiglstorfer

I'm currently the CTO and Co-Founder of mFoundry (http://www.mfoundry.com) and the principal architect of Mojax (http://mojax.mfoundry.com). More importantly I'm also a rabid Mac fanatic with an unhealthy obsession with my iPhone.

The Complete Tutorial on iOS/iPhone Custom URL Schemes

Note: Since the introduction of custom URL schemes, this post has consistently been the top read content on the blog. Although much is the same, there are a few nuances that have changed. This is a re-write of the original post, updated for the latest iOS and Xcode versions.

One of the coolest features of the iPhone/iOS SDK is an application’s ability to “bind” itself to a custom URL scheme and for that scheme to be used to launch the application from either a browser or from another application.

Continue reading

Using NSScanner to convert hex value to UIColor object

I’ve found that defining a custom UIColor using RGB values is a little counter intuitive compared to the more common hexadecimal notation used in CSS. This is particularly true if you want to define a color value in a file and don’t want to have to split it into three separate values.

For the most part, NSScanner has everything we need to parse data types (int, float, string etc) from a string.

Continue reading

How to “fix” Subversion in XCode 3

If you don’t take the necessary steps to prepare for subversion, you will run into problems using it in XCode. This is because XCode produces files that “confuse” Subversion because it either thinks they are text files when they are really binary files or the reverse. To overcome these limitations, you need to make some simple changes to the subversion configuration file in your user home directory. Here are some steps you can follow to ensure that you will be able to use Subversion within XCode without any issues.
Continue reading

How to Mask an Image

Masking an image enables a developer to create images with irregular shapes dynamically. Masking is often used to create a user interface that is more compelling and less boring.

Take for example the following example …

maskingstoryboard.png

Continue reading

How to “unfreeze” your iPhone Application

Have you ever found yourself stumped because your application locks up but doesn’t seem to crash or in any other way indicate that there is an error? If you have, then you are likely the victim of a common problem that can occur when you attempt to make certain changes to the UI outside of the main thread. Put more technically … you are doing something that is not “Thread Safe”.

To avoid “freezing” your application, ensure that any logic that is changing your UI is performed by the Main thread. One approach to this would be to leverage the NSNotificationCenter but sometimes that is overkill. A much simpler approach is to use one of the following performSelectorOnMainThread methods on NSObject:

Nine-times-out-of-ten this is the magic that will “thaw” your application and get it humming along again!