title: Swift: How to insert an UIImage at a particular index in a string?
body: <p>I'm trying to insert an UIImageView into a textView..It works but the position of my image is always at the corner of The textView.
  Here is my code :</p>
  
  <pre><code>if(parseur.textStrings.containsString(SymboleList[i])){
     let image = UIImageView(image: UIImage(named: imagesSymboleList[i]))
     let path = UIBezierPath(rect: CGRectMake(0,0, image.frame.width,       image.frame.height))
     parseur.textStrings.stringByReplacingOccurrencesOfString(SymboleList[i], withString: "")             
     boiteTexte.textContainer.exclusionPaths = [path]
     boiteTexte.addSubview(image)
  }
  </code></pre>
  
  <p>SymboleList is a list containing strings I want to replace with images (images are in imagesSymboleList)
  I have to find the position of string I want to replace and insert my image at that index.
  How can I do this?</p>