-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDropDownCell.m
47 lines (36 loc) · 889 Bytes
/
DropDownCell.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
37
38
39
40
41
42
43
44
45
46
47
//
// DropDownCell.m
// DropDownTest
//
// Created by Florian Krüger on 4/3/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "DropDownCell.h"
@implementation DropDownCell
@synthesize textLabel, arrow_up, arrow_down, isOpen;
- (void) setOpen
{
[arrow_down setHidden:YES];
[arrow_up setHidden:NO];
[self setIsOpen:YES];
}
- (void) setClosed
{
[arrow_down setHidden:NO];
[arrow_up setHidden:YES];
[self setIsOpen:NO];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end