Tocropviewcontroller: Done button does not dismiss

Created on 16 Feb 2019  ·  3Comments  ·  Source: TimOliver/TOCropViewController

I used the latest 2.4 version using cocoapods and still when I press the done button it does not close the crop view controller

question

All 3 comments

@asadqazi You have to dismiss TOCropViewController yourself.

Exactly. Thanks for the clarification @ay8s!

A few people have commented on this, so I might need to make it more explicit.

cropViewController.dismiss(animated: true, completion: nil)

I wrote above line at the end of _didCropToImage_ method from CropViewControllerDelegate delegate and fixed the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anuradhss picture anuradhss  ·  3Comments

TimOliver picture TimOliver  ·  12Comments

yarodevuci picture yarodevuci  ·  8Comments

erickva picture erickva  ·  4Comments

muranobu picture muranobu  ·  4Comments