artemkrachulov / AKImageCropperView

Responsive image cropper
MIT License
172 stars 66 forks source link

Unable to "reload" new image into the cropper - ScrollView get zoomed #2

Open roimulia opened 8 years ago

roimulia commented 8 years ago

First of all, Thank you for this great git! Hey. i'm having this weird issue. When i'm first initializing the cropper View like this

  self.cropView = AKImageCropperView(frame: self.preview.bounds, image: img!, showOverlayView: true)
                    self.preview.addSubview(self.cropView)

                    self.cropView.refresh()

It's works perfectly. Tho when i'm trying to change the image inside the cropper, like this ;

self.cropView.image = img
                    self.cropView.refresh()

It's changing the image, but the scrollView zoom is almost on max. I might be missing something, but how can i just replace the image and refresh the image? re-creating the cropper each time is slow, tried it already. Thanks!

aduenasEurostar commented 8 years ago

Hi, did you solved it? thx

artemkrachulov commented 8 years ago

Yes ))