【发布时间】:2016-06-01 21:22:27
【问题描述】:
例如:
func textFieldDidBeginEditing(textField: UITextField) {
switch textField {
case stateField:
print("editing state")
case countryField:
print("editing country")
default:
break
}
}
是因为它正在查看这些字段的地址吗?这是使用 switch 语句的正确方法吗?
【问题讨论】:
标签: ios swift switch-statement