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
Post a Comment