replaced UITextALignementCenter which is deprecated by NSTextAlignmentCenter