Self Validating Text Fields

My belief is that a text field should be able to do its own validation. Unfortunately, the delegate pattern causes many people to believe they must put the validation logic in a UIViewController, and I don’t blame people for thinking this. I was doing iOS development for well over a year before I finally started…

Xcode 6 XLIFF CLI

I really need to stop getting on rants when I go to write something useful. I came across this in the iOS Localization Guide. If you’ve been impressed with Xcode 6’s new XLIFF features, but you wish you could have your CI server generate the XLIFF for you, FEAR NOT! With one simple command, you can spit…

Xcode 6 XLIFF Rant

A while back I was thinking about one of our workflows. When it comes to iOS localization, the way it was prior to Xcode 6 was to either use genstrings, which sucks, or come up with your own in house solution, which sucks. One problem with the old genstrings was that it would overwrite all…

UITextField Max Length (The Right Way)

Any long time developer of iOS knows that limiting the length of a UITextField is fairly simple. All you have to do is implement  textField:shouldChangeCharactersInRange:replacementString:. The problem is, when compared to other languages, this can seem really tedious and dumb. In other languages/platforms, all you have to do is set some property on your UITextField , and you’re…