I want to add an image/button to my UITextView and the text should automatically make a line break that the image/button fits.
Second question. I want to make a button called “move image/button” and then the user can move the image/button through the UITextView and the text should adjust.
PS: like in “Pages” for mac or “Word” for Windows
This is decidedly non-trivial. For starters, you can’t simply embed a UIImage inside a UITextView and even if you could text wouldn’t magically flow around it. What you’ll need to do is create your own object based on a UITextView that substantially extends its capabilities to provide such editing tools.
For a heads-up as to what you’re getting into you might want to take a look at the example Text Editor source code from the Omni Group.