// 键盘类型 textField.keyboardType = UIKeyboardTypeNumberPad; //placeholder字体颜色 [textField setValue:[UIColor whiteColor] forKeyPath:@“_placeholderLabel.textColor”]; //键盘return键样式 [textField setReturnKeyType:UIReturnKeyDone];