title: Find coordinates of a substring in UILabel
body: <p>I have a string coming from server which I am displaying on UILabel. It is within that string, I am identifying some particular substring. I want to place a button on that substring(button will be a subview of UILabel). For this I require substring coordinates. I went through <a href="https://gist.github.com/1278483#file_ui_label%2Bfix.m" rel="nofollow noreferrer">this Gist</a> but I am not able to understand it.</p>
  
  <p>Suppose my complete string is <strong>abc, 567-324-6554, New York</strong>. I want <strong>567-324-6554</strong> to be displayed on button, for which I need its coordinates. How can I use above link to find coordinates of substring?  </p>