ResearchKit を使用してエンタープライズ アプリを作成しています。
私は現在、回答を集めてPDFを作成し、電子メールで送信する段階にあります。
同意文書をお持ちの場合、これはそのコードです。
ConsentDocument .makePDFWithCompletionHandler({ (NSData pdfFile, NSError エラー) -> Void in
// println("pdf created")
// finding document path //TODO: Remove if not needed
let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] .stringByAppendingPathComponent("Consent.pdf")
pdfFile!.writeToFile(documentsPath, atomically: false)
println(consentDocumentFromDirectory)
})
しかし、同意書を持っていない場合はどうなりますか?
PDFはどのように作成すればよいですか?