-3

I am making an photo editing app in which I have applied some photo editing effect on selected image and then save image. After that when user press on share button I select image form photo gallery and share it on facebook, whatsapp, wechat, googleplus, instagram etc. Now problem is that I want share image with message.

Usman Javed
  • 2,437
  • 1
  • 17
  • 26
  • this question needs more detail: share your image *how* (SMS, e-mail, posting it to Facebook or via some web server). Also, what have you tried so far? – Michael Dautermann Jul 14 '15 at 07:46
  • What do you mean by share image with text? It very vague what that means. Please provide more detail of you requirements and code. – Popeye Jul 14 '15 at 07:57
  • @MichaelDautermann I want to share on any social app just like whatsapp, instagram, wechat, message, mail, googleplus, facebook. – Usman Javed Jul 14 '15 at 08:02
  • @Popeye My app is photo editing app in which we do some graphical work on selected photo and save it. Then we select our saved photo from photo library and share it on facebook. – Usman Javed Jul 14 '15 at 08:03
  • 1
    @user3305573 Ok that answers the question of the word "Share" now what do you mean by with text? Is the text on the image? Inline with the Image? Just on the same message? Also please update your question and don't leave a comment with the new information as people don't read comments they read questions, and again what code have you got? Have you actually tried anything? – Popeye Jul 14 '15 at 08:08
  • I guess, you have a common image on which text is different. Adding this different text, you'll share this image. Right? If this is the problem, set the image on uiview and set the uilabel on it. after setting the uilabel, take the screenshot of only uiview. – Maverick Jul 14 '15 at 08:46

1 Answers1

0

If you want to add text to an image then load the image in a UIImageView then add a UILabel as a subview. Then render the views into an UIImage. like this

Then to share the image use UIActivityViewController like this

Community
  • 1
  • 1
Chris
  • 2,727
  • 2
  • 27
  • 28