Currently, I am developing an App in which I have a Image view on which image are constantly
changes after some time. Now I want that I am able to write some text or draw any symbol
,simple line,cross line means to say drawing on image appears in image view. Means I want to
add text or drawing some symbols or lines e.t.c on image. I am searching everywhere but can't
find any solution. How can I solve this? Thanks in advance.
You have two options.
UILabel
as the subview of imageView and set the backgroundcolor of UILabel to clear color.Implement the following method, which takes image and text as argument and returns the text added image.
//Add text to UIImage
Reference : http://iphonesdksnippets.com/post/2009/05/05/Add-text-to-image-%28UIImage%29.aspx
See if this works :