0
我用下面的代碼爲左證明號碼NSNumberFormatter右對齊
NSString *docStr=[contentDic objectForKey:@"Doc#"];
NSNumberFormatter * f = [[NSNumberFormatter alloc] init];
[f setNumberStyle:NSNumberFormatterDecimalStyle]
NSNumber * myNumber = [f numberFromString:docStr];
[f release];
,但我沒有得到如何右對齊的數字,可一些身體解釋我該怎麼辦呢? 在此先感謝