- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
NSString* rarityStr = [[APPDELEGATE daoManager] getDictName:tmpl.rarityId];
int lengthdiff = [@"Uncommon" length] - [rarityStr length];
if ([rarityStr isEqualToString:@"Rare"]) {
lengthdiff++;
}
NSMutableString* spacesStr = [NSMutableString string];
while (lengthdiff > 0) {
[spacesStr appendString:@" "];
lengthdiff--;
}
[rarityLabel setText:[NSString stringWithFormat:@"%@%@", spacesStr, rarityStr]];
Dummy00001 19.01.2011 16:21 # +1
Анонимус 19.01.2011 22:23 # 0
интересно, пишут ли еще под карбон?
Dummy00001 19.01.2011 22:56 # 0