gpt4 book ai didi

swift - TextLabel 为预填充文本返回 null

转载 作者:行者123 更新时间:2023-11-28 13:12:01 25 4
gpt4 key购买 nike

我正在使用 Swiftforms,发现 here , 添加一个表单供用户填写。由于我已经掌握了大部分信息,因此我正在为用户填写表格,然后如果他们选择并单击提交,他们就可以对其进行编辑。当我预填文本时,对于我填写的信息,返回的结果为空,在本例中为电子邮件地址。

 var row: FormRowDescriptor! = FormRowDescriptor(tag: Static.emailTag, rowType: .Email, title: "Email")
row.configuration[FormRowDescriptor.Configuration.CellConfiguration] = ["textField.text" : "john@gmail.com", "textField.textAlignment" : NSTextAlignment.Right.rawValue]
section1.addRow(row)

enter image description here

最佳答案

想通了。我必须设置 row.value = ""

关于swift - TextLabel 为预填充文本返回 null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30965263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com