For instance, I subclassed UILabel and added a method or property called -verticalTextAlignment to align text vertically. And in the future, if
UILabel
-verticalTextAlignment
An elegant solution is to check for the method being already there and only adding it if it isn't: Conditional categories in Mountain Lion