NSString Concatenation Using Categories and NSArray Literals.

A while back I had posted on concatenating NSString objects. Now that we have literal notation, let’s see how much easier and terse we can make this, hmmmm? Here is the category on NSArray: @interface NSArray (StringUtilities) – (NSString *)string; @end @implementation NSArray (StringUtilities) – (NSString *)string; {     return [self componentsJoinedByString:@””]; } @end … Continue reading NSString Concatenation Using Categories and NSArray Literals.

Using UIViewController Class Inheritance with Nib Files

If you’re like me, you love using .xib files to specify what your user interfaces are to look like. One unfortunate side effect of using .xib files is that they do not easily lend themselves to class inheritance. Described here is a technique for using class inheritance with your UI elements laid out in .xib files. … Continue reading Using UIViewController Class Inheritance with Nib Files