How to wrap to a detailForGraphic string

Discussion created by chbinb on May 16, 2012
Latest reply on May 18, 2012 by njarecha-esristaff
//details for the callout
- (NSString *)detailForGraphic(AGSGraphic *)graphic screenPoint(CGPoint)screen mapPoint(AGSPoint *)map {
    //return [NSString stringWithFormat:@"'90: %@, '99: %@", [graphic.attributes valueForKey:@"POP1990"], [graphic.attributes valueForKey:@"POP1999"]];
    NSString *str= [NSString stringWithFormat:@"class:%@\n govement:%@\n",[graphic.attributes valueForKey:@"XL"],[graphic.attributes valueForKey:@"XZQMC"]];
    return str;

I hope that result such as "class:XXXX
                                         govement: XXX" this is also (NSString)str`s results.
but the result is "
class:XXXX   govement: XXX", there is no line feed.
How can i do ?