Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
¿Cómo manejar un bloqueo causado por una pérdida de memoria al usar un PDFKit en iOS 12?

Estoy usando pdfKit en CollectionViewController y cada celda tiene un PDF diferente, y el PDF se descargará del directorio del documento.

Cuando uso el siguiente código en iOS 11, funciona bien. Sin embargo, cuando lo uso en iOS 12, tengo una pérdida de memoria y un bloqueo posterior.

Este es el error que me sale:

Tema 4: EXC_BAD_ACCESS (código=1, dirección=0x107b5401c)

Este es mi código:

 func loadData(_ finame: String) { let dbPath = finame let url = URL(fileURLWithPath: dbPath) if let pdfDocument = PDFDocument(url: url) { self.pdfView.document = pdfDocument self.pdfView.autoScales = true self.pdfView.maxScaleFactor = 4.0 self.pdfView.minScaleFactor = pdfScaleFactor if #available(iOS 12.0, *) { self.pdfView.pageShadowsEnabled = false } } }

¿Como puedo solucionar este problema?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!