diff --git a/Source/ImageGallery/ImageGalleryView.swift b/Source/ImageGallery/ImageGalleryView.swift index 7bd3b33b..605dc9ee 100644 --- a/Source/ImageGallery/ImageGalleryView.swift +++ b/Source/ImageGallery/ImageGalleryView.swift @@ -195,7 +195,7 @@ public class ImageGalleryView: UIView { } let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel) { _ in - delegate?.dismissViewController(alertController) + self.delegate?.dismissViewController(alertController) } alertController.addAction(alertAction)