Try to search your question here, if you can't find : Ask Any Question Now ?

Apple/iOS pdfkit who i create dropdownlist and how i give default values on forms?

HomeCategory: stackoverflowApple/iOS pdfkit who i create dropdownlist and how i give default values on forms?
rupesh asked 2 weeks ago

I use this code to create a form on the 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)

My questions are:

  1. How do I put a default text message on text2FieldName?

  2. How do I create a drop down list with 3 choices?

    • choice 1
    • choice 2
    • choice 3

and when a user select choice 3, we change the message on text2FieldName with some thing else?

1 Answers
Best Answer
Mannu answered 2 weeks ago
Your Answer

15 + 19 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com