Twitter Client Tutorial Update

Over a year ago I posted a tiny not-quite-tutorial on pulling down Twitter user timelines into a simple UITableView. Twitter has since changed the way their API works and you now need to be authenticated before you can use their API. I’ve put together a new Xcode project that handles the authentication (assuming you have … Continue reading Twitter Client Tutorial Update

Extending UITextField to Have Validation

I’ve created a subclass of UITextField that adds validation facilities and appearance feedback. The idea is that users are happier when it is clear what is expected from them. If you have fields in a form, say, and some either NEED to be filled out or they NEED to be filled out in a specific … Continue reading Extending UITextField to Have Validation

I Did Not Like The Last Of Us

Let’s take a small break from programming topics so I can get something off my chest: I did not like “The Last of Us.” And actually, considering how adored this game is my feelings trend toward hate. And being hateful all by my lonesome makes me even more hateful. It’s like a shame-spiral of hate. I’d … Continue reading I Did Not Like The Last Of Us

Simple SVG Parser for iOS

I’ve added a simple SVG Parser for iOS on github. Get it here: https://github.com/jmenter/JMSVGParser Here’s how it works: 1.) Call the class method to get back an array of styled shapes self.shapes = [JMSVGParser parseFileNamed:@”awesome_tiger”] 2.) In your view’s – (void)drawRect:(CGRect)rect method, tell each shape to draw, like this: for (JMStyledPath *styledPath in self.shapes) { [styledPath drawStyledPath]; … Continue reading Simple SVG Parser for iOS

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