ios - How to make UIView with AVCaptureVideoPreviewLayer look better? -
i'm trying build subclass of uiview take 1 snapshot using avfoundation. it's working great make corners round or add little shadow. how can achieve using core graphics etc.?
github: https://github.com/dariolass/quickshotview
update: result looks like:
use quartzcore
#import <quartzcore/quartzcore.h> then can modify layer off view:
someview.layer.cornerradius = 8; someview.layer.shadowoffset = cgsizemake(-15, 20); someview.layer.shadowradius = 5; someview.layer.shadowopacity = 0.5; or that
Comments
Post a Comment