单击提交按钮后从ortuman / SwiftForms恢复数据

时间:2015-08-18 10:01:02

标签: ios swift cocoapods

我在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;
}

1 个答案:

答案 0 :(得分:0)

for (key, value) in self.form.formValues() {
    println("\(key) = \(value)")
}

if let company = self.form.formValues()["company"] as? String {
            println(company)
}