Changed deprecated UITextAlignmentCenter to NSTextAlignmentCenter