Made check for (UI/NS)TextAlignment be an ifdef

This should behave the same, since both the constants maps to 1, but without the deprecation warning if you use a modern version of Xcode.