2010-08-21 42 views

回答

0

Try cell.textLabel.text = [NSString stringWithFormat:@「%@:@d」,strIntName,[num intValue]];

+0

上述格式字符串錯誤。應該是'@「%@:%d」' – 2010-08-21 16:18:04

1

你可以使用NSString * compositeString = [[NSString alloc] initWithFormat:@"%@ %d", myOtherString, myInt]

0

cell.textLable.text = [NSString的stringWithFormat:@ 「%@%d」,yourString,yourNumber];

1

這在NSString文檔中的NSString stringWithFormat:中有描述。