我在cocopods ortuman / SwiftForms上使用这个pod提交按钮它是这种格式的providind数据
{
company = "<null>";
email = "<null>";
interst = M;
location = "<null>";
name = "<null>";
phone = "<null>";
picker = E;
position = "<null>";
textview = "<null>";
website = "<null>";
}
我无法从中提取任何数据,如公司是关键,然后测试是值,即我想要的,如果我不输入它提供数据的任何东西
/* Add all the elements here */
div, span, table, ... {
background: #fff;
}
答案 0 :(得分:0)
for (key, value) in self.form.formValues() {
println("\(key) = \(value)")
}
或
if let company = self.form.formValues()["company"] as? String {
println(company)
}