FTCoreText
FTCoreText copied to clipboard
touched frame issues
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]);
- The Y value is always too large, by about the font size. I may be miscalculating something, but that's what I'm seeing.
- 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.
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.