如何比较两个文本字段中的文本以查看它们是否相同,例如在"密码"和"确认密码"文本字段中?
if (passwordField == passwordConfirmField) { //they are equal to each other } else { //they are not equal to each other }
cocoa-touch objective-c string-comparison uitextfield ios
cocoa-touch ×1
ios ×1
objective-c ×1
string-comparison ×1
uitextfield ×1