- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- (void) setLevel:(NSInteger)level {
if (level > (long)[_ranksDictionary count] - 1) level = (long)[_ranksDictionary count] - 1;
if (level < 0) level = 0;
_level = level;
self.currentRank = [_ranksDictionary objectForKey:[NSNumber numberWithInteger:_level]];
if (rankDataItem.integerValue != -_level)
rankDataItem.integerValue = _level;
}