2010-08-21 9 views

Répondre

0

Essayez cell.textLabel.text = [NSString stringWithFormat: @ "% @: @d", strIntName, [num intValue]];

+0

La chaîne de format ci-dessus est incorrecte. Devrait être '@"% @:% d "' –

1

Vous pouvez utiliser NSString * compositeString = [[NSString alloc] initWithFormat:@"%@ %d", myOtherString, myInt]

0

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

1

Ceci est décrit dans NSString stringWithFormat: dans la documentation de NSString.

Questions connexes