Friday, May 8, 2009

Formatted String

To build formatted string like "printf" in C.

NSString* formattedString = [NSString stringWithFormat:@"NSString:%@, int:%d, float:%f", @"string", 1, 0.1];

No comments:

Post a Comment