1

I would like to achieve something like the following for a UITextField or a UITextView. The Object added to will be treated like a string when we delete texts.

I know I can add a backgrand image and get it done with too many codes.

Please let me know the best possible way to achieve this and kindly give me some pointers.

enter image description here

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140

1 Answers1

0

I would recommend you use Text Kit. Using a UITextView with Text Kit allows you to define exclusion paths (which could be used to form text around subviews) or to add attachments into the text directly.

Here's another answer that gives some pretty good direction: How to wrap text around attachments using iOS7 Text Kit?

Community
  • 1
  • 1
InkGolem
  • 2,662
  • 1
  • 15
  • 22