Ios UILabel不显示控制台中显示的文本字符串

Ios UILabel不显示控制台中显示的文本字符串,ios,objective-c,xml,uitableview,uilabel,Ios,Objective C,Xml,Uitableview,Uilabel,我有一个不会出现的UILabel 如果我使用api2Cell.labelDescription.text=@Hello;然后文本显示出来,但是当我试图从控制台中显示的XML中获取文本时,它不会显示在标签中 FeedRSS *feedDan = (FeedRSS *)model; MRWebListTableViewCellTwo *api2Cell = [tableView dequeueReusableCellWithIdentifier:@"YourAPI2Cell"]; NSString

我有一个不会出现的UILabel

如果我使用api2Cell.labelDescription.text=@Hello;然后文本显示出来,但是当我试图从控制台中显示的XML中获取文本时,它不会显示在标签中

FeedRSS *feedDan = (FeedRSS *)model;
MRWebListTableViewCellTwo  *api2Cell = [tableView dequeueReusableCellWithIdentifier:@"YourAPI2Cell"];
NSString *description = [self removeHTMLTags:feedDan.description];
api2Cell.labelDescription.text = description;
NSLog(@"DescriptionString RSS: %@", description);
控制台显示:

DescriptionString RSS: 
BOSTON -- Jared Sullinger will always wonder what might have been if Evan Turner had returned for his senior season at Ohio State. evanalmighty12 on...
但标签是空白的。不显示null,只是保持空白。有时,当我按住单元格时,文本会显示一会儿。所以我就是不明白。我设置了断点等

有人能帮忙吗?谢谢

以下是removeHTMLTags的方法:


可能是因为描述的开头有一行新词

尝试使用:

api2Cell.labelDescription.text = [description stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

这真是太棒了谢谢你这么多的工作!!!但是快速提问,因为我还没有完全看到描述开头的新行。你在哪里看到的?我知道我错过了它,我想确保我完全理解您的解决方案,即使我知道它是正确的,并且有效。谢谢通常,对于web内容,它是不可见的。但是在你的日志里,行,波士顿-贾里德·苏林格。。。从新线开始。这让我这么想。
api2Cell.labelDescription.text = [description stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];