I’m using this tutorial for capturing images with AVFoundation. I’m trying to get the captured image from CaptureSessionManager (an NSObject class) back to the AROverlayViewController. How do I go about doing this?
I tried putting @property (nonatomic, retain) UIImage *finalImage; in AROverlayViewController.h, then setting arController.finalImage = image; in CaptureSessionManager.m, but the log is saying that finalImage is null.
Any thoughts on how best to do this? Thanks!
There is a property on the class CaptureManager
which you can get by this code