我正在尝试将用户输入从 textField 转换为数组。我遵循了此处提供的代码https://stackoverflow.com/a/27501398
let someString : String = someTextField.text!
let someArray = Array(someString).map { String($0).toInt()! }
但后来我得到这个错误:
Argument type "String" does not conform to expected type "Sequence"
我究竟做错了什么?