change NSTextAlignmentCenter to UITextAlignmentCenter