Override textRectForBounds:limitedToNumberOfLines:
Override textRectForBounds:limitedToNumberOfLines:

The text rect we were getting using
-textRectForBounds:limitedToNumberOfLines: in -characterIndexAtPoint:
was incorrect because it was not taking our attributed string into
account.

We were not correctly finding links if text was smaller than bounds
because the text rect was not taking our vertical centering into
affect. In addition, links towards the end of the string could be cut
off because the text rect we were getting back was for a regular string
and not our attributed string which could be bigger (for example if it
was bold).

We already had the correct code for handling this in -drawTextInRect:.
I simply moved the code into -textRectForBounds:limitedToNumberOfLines:
which makes complete sense.

TTTAttributedLabel/TTTAttributedLabel,zilanfeng/TTTAttributedLabel,FiftyThree/TTTAttributedLabel,hao-hua/TTTAttributedLabel,yimouleng/TTTAttributedLabel,rtsbtx/TTTAttributedLabel,Nykho/TTTAttributedLabel,JIFFinc/TTTAttributedLabel,KILLI/TTTAttributedLabel,hoaquo/TTTAttributedLabel,Naithar/TTTAttributedLabel,HackRoy/TTTAttributedLabel,SampleLiao/TTTAttributedLabel,mjhassan/TTTAttributedLabel,yanyuqingshi/TTTAttributedLabel,mattt/TTTAttributedLabel,gga122/TTTAttributedLabel,BarakRL/TTTAttributedLabel,bilawal-liaqat/TTTAttributedLabel,TimorCan/TTTAttributedLabel,buiminhhuy/TTTAttributedLabel,leftw1222/TTTAttributedLabel,jianwoo/TTTAttributedLabel,Akylas/TTTAttributedLabel,Voxer/TTTAttributedLabel,sunzeboy/TTTAttributedLabel,yaoxiaoyong/TTTAttributedLabel,zhwcoder/TTTAttributedLabel,CoderIvanLee/TTTAttributedLabel,FishMemory/TTTAttributedLabel,qskycolor/TTTAttributedLabel,SinnerSchraderMobileMirrors/TTTAttributedLabel,sugarmo/TTTAttributedLabel,xudongdong/TTTAttributedLabel,lookingstars/TTTAttributedLabel,denivip/TTTAttributedLabel,Xummer/TTTAttributedLabel,xuzhiming/TTTAttributedLabel,devandroid/TTTAttributedLabel,0xced/TTTAttributedLabel,XZwalk/TTTAttributedLabel,z8927623/TTTAttributedLabel,zhouwude/TTTAttributedLabel,wintersweet/TTTAttributedLabel,NewAmsterdamLabs/TTTAttributedLabel,WWLJ/TTTAttributedLabel,ben181231/TTTAttributedLabel,engmahsa/TTTAttributedLabel