-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBeesTOSAgreeCell.m
47 lines (35 loc) · 1.22 KB
/
BeesTOSAgreeCell.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
//
// BeesTOSAgreeCell.m
// HudsonMobile
//
// Created by simone on 5/26/11.
// Copyright 2011 LMIT ltd. All rights reserved.
//
#import "BeesTOSAgreeCell.h"
#import "GenericHTMLViewer.h"
@implementation BeesTOSAgreeCell
@synthesize descLabel, onoffSwitch, parent, inputCellUpdateSelector;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
}
return self;
}
- (IBAction) onOffSwitchValueChanged: (id) sender{
[parent performSelector:inputCellUpdateSelector withObject:onoffSwitch];
}
- (IBAction) onShowTOSButtonClick: (id) sender{
GenericHTMLViewer *anotherViewController = [[GenericHTMLViewer alloc] initWithNibName:@"GenericHTMLViewer" bundle:nil andFileName:@"bees_tos" andTitle:NSLocalizedString(@"Terms Of Service",@"Terms Of Service") andURL:nil andData:nil];
[[(UITableViewController*)parent navigationController] pushViewController:anotherViewController animated:YES];
[anotherViewController release];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
}
- (void)dealloc
{
[super dealloc];
}
@end