Switching from deprecated UITextAlignment constants to NSTextAlignment.