我使用以下代码在pdf上创建表单:
// Intro: "Text2"
let text2FieldNameBounds = CGRect(x: 153, y: pageBounds.size.height - 379, width: 427, height: 20)
let text2FieldName = PDFAnnotation(bounds: text2FieldNameBounds, forType: PDFAnnotationSubtype(rawValue: PDFAnnotationSubtype.widget.rawValue), withProperties: nil)
text2FieldName.widgetFieldType = PDFAnnotationWidgetSubtype(rawValue: PDFAnnotationWidgetSubtype.text.rawValue)
text2FieldName.backgroundColor = UIColor.blue.withAlphaComponent(0.25)
text2FieldName.font = UIFont.systemFont(ofSize: 9)
page.addAnnotation(text2FieldName)
我的问题是:
如何在text2FieldName上放置默认短信?
如何创建具有3个选择的下拉列表?
当用户选择选项3时,我们用其他方式更改了text2FieldName上的消息吗?