我为了提取字符串匹配从我的数组的字符串使用此代码ios UITableViewCell总是有一个额外的字符,为什么?
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
NSString *cellText = cell.textLabel.text;
在
- (void)tableView:(UITableView *)tableView1 didSelectRowAtIndexPath:(NSIndexPath *)indexPath
。
但是,它永远不会被匹配,如
NSLog (@"cellText length %d", [cellText length]);
总是显示CELLTEXT始终一个额外的字符,即使有,我的表视图是由加载在我的数组没有空格或额外的字符。
为什么会发生这种情况?
我已经测试在我原来的应用程序这个问题的代码,它总是显示量characters.Please看看我的其他问题正确:http://stackoverflow.com/questions/9268230/ios-nspredicate-not-关于字符串的匹配工作。 – wagashi 2012-02-15 07:32:56