I am developing an app in that a user can write a label(text) over the image and have to save it in iphone local storage with the label.
(i.e) User can add whatever text in the place provided over the image, and have to save it as image with the label he wrote in the iphone local storage
Thanks in advance
I think you need to add the your UIImageView and your UILabel as a subview of a particular UIView (Suppose we call this view as
customView) and then take the screenshot of the view usinghow to take a screenshot of the iPhone programmatically?
Answer from the link modified to make it more easy for your understanding which is as follows:
Important: Add
QuartzCore Frameworkand add#import<QuartzCore/QuartzCore.h>You can get your NSDocuments Directory file path using:
Now execute this code on any button or other control click you want the view to be captured.
Let me know if you need more help.
Hope this helps you.