Alua-Kinzhebayeva / iOS-PDF-Reader

PDF Reader for iOS written in Swift
MIT License
532 stars 150 forks source link

iOS9 cpu 100% #95

Open xiaomingstudent opened 6 years ago

xiaomingstudent commented 6 years ago

image

wiliam-toney commented 6 years ago

The same issue on my side

ashwingattani commented 6 years ago

@Alua-Kinzhebayeva any update on this?

jwelton commented 6 years ago

Can you give anymore details on this?

ashwingattani commented 6 years ago

@jwelton every time we open a PDF, the CPU usage goes straight up to 100%, sometimes even more. Similarly, the memory is not released once the PDF is closed, some internal variables keep references in memory and result in application crash for lower memory devices.

xiaomingstudent commented 6 years ago

i add "self.collectionView?.register(PDFThumbnailCell.self, forCellWithReuseIdentifier: "Cell")" in ViewdidLoad method(PDFThumbnailCollectionViewController) . Then solve this problem but i don't kown why?

ndcg91 commented 4 years ago

I confirm that by reusing the cel with the reuse identifier as @xiaomingstudent says the issue is fixed