ios 点击提交按钮后从ortuman/SwiftForms中删除数据

rxztt3cl  于 12个月前  发布在  iOS
关注(0)|答案(1)|浏览(88)

我正在使用cocopods ortuman/SwiftForms的提交按钮上的这个pod,它以这种格式提供数据

{
    company = test;
    email = test;
    interst = M;
    location = test;
    name = test;
    phone = 8765;
    picker = E;
    position = test;
    textview = test;
    website = test;
}

字符串
我有麻烦提取任何数据,从这个像公司是关键,然后测试是价值,即我想要的,如果我不输入任何东西,它返回的数据作为

{
    company = "<null>";
    email = "<null>";
    interst = M;
    location = "<null>";
    name = "<null>";
    phone = "<null>";
    picker = E;
    position = "<null>";
    textview = "<null>";
    website = "<null>";
}

v2g6jxz6

v2g6jxz61#

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

字符串

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

相关问题