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:

http://www.bytolution.com/qsv.png

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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -