textField编辑结束去空格

- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
    if ([textField isFirstResponder]) {
        [textField endEditing:YES];
    }
    return YES;
}

你可能感兴趣的:(textField编辑结束去空格)