下面的开源主要用于超链接网址,电话号码。etc/ https://github.com/clawoo/IFTweetLabel
但是在这个开放源码中有一个主要问题,如果它太长(超过1行),它永远不会超链接。
我已经尝试使用下面的网址,它只超链接第一行,而不是3行http://2.bp.blogspot.com/_wuODgRtiCUY/TO2W2EqC2hI/AAAAAAAAAEA/PbwTm9Cl8As/s1600/Shining-Apple-Logo-759135.jpg
请发布一些解决方案或任何其他好的开源软件。
谢谢
发布于 2013-11-29 16:14:57
刚找到解决方案。
注释掉代码:
//BOOL breakWidth = NO;
/*if (currentSize.width > frame.size.width)
{
// the width of the text in the frame caused the line to break
//NSLog(@"------ scanText = '%@', currentSize = %@", scanText,
//NSStringFromCGSize(currentSize));
breakWidth = YES;
}*/现在,它不会检查字符串的宽度(或一行的末尾),而是会检查整个字符串,直到得到新的行字符。
https://stackoverflow.com/questions/11524285
复制相似问题