title: iOS 7 TextKit - How to insert images inline with text?
body: <p>I am trying to get the following effect using a UITextView:</p>
  
  <p><img src="https://i.stack.imgur.com/mdyg9.png" alt="enter image description here"></p>
  
  <p>Basically I want to insert an image between text. The image can simply just take up 1 row of space so there is no wrapping necessary.</p>
  
  <p>I tried just adding a UIView to the subview:</p>
  
  <pre><code>UIView *pictureView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 25, 25)];
  [pictureView setBackgroundColor:[UIColor redColor]];
  [self.textView addSubview:pictureView];
  </code></pre>
  
  <p>But it seems to float over the text and cover it.</p>
  
  <p>I did a bit of reading on <strong>exclusion paths</strong> which appears to be one way of implementing this. However, I don't want to absolutely position the image - instead, it should flow with the text (similar to how <code>&lt;span&gt;</code> behaves in HTML).</p>