Post

Replies

Boosts

Views

Activity

Problem with image zoom!!
Hi all, I'm trying to zoom in on an image that is updated every second. I have tried many ways (scroll view above all) but I like none very much. the most interesting way was to create a PDF with this code: self.pdfView = PDFView(frame: self.view.bounds) self.pdfView.displayDirection = .vertical self.pdfView.displayMode = .singlePage self.pdfView.backgroundColor = UIColor.white                 if let pdfPage = PDFPage(image: self.image) { let pdfDoc = PDFDocument()              pdfDoc.insert(pdfPage, at: 0)                               self.pdfView.document = pdfDoc             self.pdfView.autoScales = true             self.pdfView.minScaleFactor = self.pdfView.scaleFactorForSizeToFit                         }           self.view.addSubview(self.pdfView) I really like the zoom this way, but I have no ability to update the PDF image. is this possible? Or do you have other easy ways to zoom? Thank you.
0
0
329
Jun ’22
Problem with storyboard constraints
I don't understand why my view don't responde correctly with inserted constraints. I show you both constraints and final view. Constraints: View: Can someone help me? I just want a centered scroll view!!!
Replies
2
Boosts
0
Views
455
Activity
May ’22
Problem with table view cell click
I've developed a UITableViewController. The problem is that when I click on the row, the cell layout change without reason. Row normal layout: Layout after click row: Can you please help me? Thanks.
Replies
4
Boosts
0
Views
648
Activity
May ’22
Problem with image zoom!!
Hi all, I'm trying to zoom in on an image that is updated every second. I have tried many ways (scroll view above all) but I like none very much. the most interesting way was to create a PDF with this code: self.pdfView = PDFView(frame: self.view.bounds) self.pdfView.displayDirection = .vertical self.pdfView.displayMode = .singlePage self.pdfView.backgroundColor = UIColor.white                 if let pdfPage = PDFPage(image: self.image) { let pdfDoc = PDFDocument()              pdfDoc.insert(pdfPage, at: 0)                               self.pdfView.document = pdfDoc             self.pdfView.autoScales = true             self.pdfView.minScaleFactor = self.pdfView.scaleFactorForSizeToFit                         }           self.view.addSubview(self.pdfView) I really like the zoom this way, but I have no ability to update the PDF image. is this possible? Or do you have other easy ways to zoom? Thank you.
Replies
0
Boosts
0
Views
329
Activity
Jun ’22