4 Replies
      Latest reply: Oct 26, 2016 3:50 AM by eskimo RSS
      Fazza Level 1 Level 1 (0 points)

        Can someone please provide source code that will allow me to save a PDF file to an iPhone. I have tried FileManager but it does not seem to work.

        • Re: Swift save PDF from URL
          eskimo Apple Staff Apple Staff (7,530 points)

          You need to be more specific about your requirements.  Do you want to save the downloaded PDF inside your app’s container?  Or pass it off to some other app, like iBooks?

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

          • Re: Swift save PDF from URL
            Fazza Level 1 Level 1 (0 points)

            I got it saving on the simulator to the defual file location but on an actual device when i save it, it is not visiable on the device. How can i change the file directory or get it to work on my device?