Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone IFTweetLabel长URL的主要问题_Iphone_Url_Uilabel_Detection - Fatal编程技术网

Iphone IFTweetLabel长URL的主要问题

Iphone IFTweetLabel长URL的主要问题,iphone,url,uilabel,detection,Iphone,Url,Uilabel,Detection,以下开源主要用于超链接URL、电话号码等/ 但是在这个开源软件中有一个主要的问题,就是如果它太长(超过1行),它永远不会超链接 我试过使用下面的url,它只超链接了第一行而不是第三行 请发布一些解决方案或其他好的开源软件 谢谢刚刚得到解决方案 注释掉代码: //BOOL breakWidth=否 /*if (currentSize.width > frame.size.width) { // the width of the text in the frame caused the l

以下开源主要用于超链接URL、电话号码等/

但是在这个开源软件中有一个主要的问题,就是如果它太长(超过1行),它永远不会超链接

我试过使用下面的url,它只超链接了第一行而不是第三行

请发布一些解决方案或其他好的开源软件

谢谢

刚刚得到解决方案

注释掉代码:

//BOOL breakWidth=否

/*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;

  }*/

现在,它不会检查字符串的宽度(或1行的结尾),而是会检查整个字符串,直到得到新行字符。

我也遇到了同样的问题。我一直在寻找这个问题的解决方案。好的,但是如果您注释掉//BOOL breakWidth=NO;它打断了IFTweet中的其他几行代码。特别是第278行,如果(特征线| |特征宽度){如何解释?