Elminate UITextAlignment deprecation warnings.

Use NSTextAlignment on iOS 6 and UITextAlignment on iOS 5. Solution based
on examples from http://stackoverflow.com/q/11920321/79202.