Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
805 - 1
//
2
//  InAppSettingsPotiValueSpecifierCell.m
3
//  InAppSettingsTestApp
4
//
5
//  Created by Frank Blumenberg on 04.05.10.
6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
7
//
8
 
9
#import "InAppSettingsPotiValueSpecifierCell.h"
10
 
11
 
12
@implementation InAppSettingsPotiValueSpecifierCell
13
 
14
- (NSString *)getValueTitle{
15
 
16
  NSNumber* value = [self.setting getValue];
17
 
18
  int intValue=[value intValue];
19
 
20
  if( intValue <= 245 )
21
    return [NSString stringWithFormat:@"%@",value];
22
 
23
  return [NSString stringWithFormat:NSLocalizedString(@"Poti%d",@"Potiname"),256-intValue];
24
}
25
 
26
- (void)setUIValues{
27
  [super setUIValues];
28
 
29
  [self setTitle];
30
  [self setDetail:[self getValueTitle]];
31
}
32
 
33
- (void)setupCell{
34
  [super setupCell];
35
 
36
  [self setDisclosure:YES];
37
  self.canSelectCell = YES;
38
}
39
 
40
@end