[CB-4826] Fix warning using UITextAlignmentCenter

-Use NSTextAlignmentCenter for SDK 6.0 or later