FTCoreText icon indicating copy to clipboard operation
FTCoreText copied to clipboard

touched frame issues

Open bejayoharen opened this issue 12 years ago • 1 comments

I am using FTCoreTextView and have noticed two issues with the location of the link as received in the delegate function:

  • (void)coreTextView:(FTCoreTextView *)acoreTextView receivedTouchOnData:(NSDictionary *)data { ... CGRect touchedFrame = CGRectFromString([data objectForKey:FTCoreTextDataFrame]);
  1. The Y value is always too large, by about the font size. I may be miscalculating something, but that's what I'm seeing.
  2. If there are multiple links on a line, I always get the same frame.

I am using this in conjunction with a popup, so I really notice these issues. #1 I can work around, but #2 makes for an awkward UX.

bejayoharen avatar Feb 04 '14 19:02 bejayoharen

Hi,

I'm also facing the second issue you got. It seems that the rect value of first links are overridden by the rect value of the last link.

hoangvudp avatar Apr 19 '15 05:04 hoangvudp