ios - how to render UIView over UIImageView in swift -


i looking way render uiview on uiimageview on camera in swift. problem capture small rectangular portion of image.for tried reducing size of uiimageview in case camera adjusted whole image in small area not objective.

finally decided hide camera rendering other component on both side up/down, how can do?

uigraphicsbeginimagecontextwithoptions(view.bounds.size, true, 0) view.drawviewhierarchyinrect(view.bounds, afterscreenupdates: true) let image = uigraphicsgetimagefromcurrentimagecontext() uigraphicsendimagecontext() 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -