Closed horaceho closed 9 years ago
@horaceho What do you see with the first method? An unfiltered preview, or a blank preview?
No preview. It looks like the preview is not there.
@horaceho The given sample code seems to work fine in the demo app and in our apps. Maybe the problem is in the frame setting. Often self.view.frame
is still equal to CGRectZero
in viewDidLoad
, and gets set later, depending on how your view controllers are initialized. If the preview is not appearing at all, perhaps its frame isn't being set correctly, and either using AutoLayout or setting the frame in viewWillAppear
would fix the issue.
The sample code does not give a preview as expected:
Instead, setting the
filterImage
once more works:Why?
Tested on iPhone 6 Plus, installed via Pod.