address deprecation warnng for UITextAlignmentCenter