Hi guys,
I trying to put a Thumbnail slider inside another view, like the image
I’m trying to put inside the green box and the white frame is the ThumbnailSliderViewController’s background. Look: https://www.dropbox.com/s/uckl616bsatak1o/IMG_0031.PNG?dl=0.
But the slider lost the behavior and the position, its look like the slider goes out of the sliderbox.
If i try to put it in “PTPDFViewCtrl” it works.
Take a look on my snippet:
func configureThumbNailSlider() {
thumbNailSlider = ThumbnailSliderViewController.init(pdfViewCtrl: pdfView)
thumbNailSlider?.delegate = self
thumbNailSlider?.view.autoresizingMask = [UIViewAutoresizing.flexibleWidth, UIViewAutoresizing.flexibleTopMargin]
thumbNailSlider?.view.frame = CGRect.init(x: 10.0, y: 0, width: self.thumbNailContainer.frame.width-50, height: 35)
self.thumbNailContainer.addSubview(thumbNailSlider.view)
}
Someone can help me?
Sorry for bad english