-
Notifications
You must be signed in to change notification settings - Fork 0
/
AccountHistoryCell.m
37 lines (30 loc) · 1.11 KB
/
AccountHistoryCell.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// AccountHistoryCell.m
// Allowance
//
// Created by Pablo Collins on 4/28/11.
//
#import "AccountHistoryCell.h"
//#import <QuartzCore/QuartzCore.h>
@implementation AccountHistoryCell
@synthesize typeLabel, dateLabel, amountLabel, xibTableViewCell, notesLabel, balanceLabel, iconLabel;
- (id)init
{
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
[[NSBundle mainBundle] loadNibNamed:@"AccountHistoryCell" owner:self options:nil];
[self.contentView addSubview:xibTableViewCell.contentView];
self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
//balanceLabel.layer.cornerRadius = 4;
return self;
}
- (void)setBalance:(NSString *)b
{
/*
CGSize size = [s sizeWithFont:[UIFont systemFontOfSize:10] constrainedToSize:CGSizeMake(100, 13)];
static int padding = 8;
balanceLabel.frame = CGRectMake(balanceLabel.frame.origin.x - size.width + 60 - padding, balanceLabel.frame.origin.y, size.width + padding, balanceLabel.frame.size.height);
*/
NSString *s = [NSString stringWithFormat:@"bal. %@", b];
balanceLabel.text = s;
}
@end