func textFieldShouldReturn(_ textfield: UITextField) -> Bool{
p1s1TextField.resignFirstResponder()
return true
}
func textFieldShouldReturn(_ textfield: UITextField)-> Bool{
p2s1TextField.resignFirstResponder()
return true
}
所以这是我需要编写的代码,唯一的区别是它们影响两个不同的文本字段。我了解我需要更改发件人以避免重新声明错误,但不确定将其更改为什么。