How to export the current view as an image?

Hi, I’m trying to make an iOS app that needs a feature to save the current view to image. Take a message app as an example, can I save the current dialog view (which may be longer than the screen) as an image?

Thanks!

Short answer is no you can’t, you can only take a screen show of a visible view.