iOS get error by creating a pdf

瘦欲@ 提交于 2019-12-04 21:19:56

You are writing to a relative path, try to change it into

PDFRenderer *pdf = [[PDFRenderer alloc]initWithFileName:pdfFileName];

i.e. the absolute path in the documents directory.

If you look at the error message, you will see that the file is being attempted to be written in the root directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!