-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCMovieCell.m
58 lines (42 loc) · 1.34 KB
/
SCMovieCell.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
48
49
50
51
52
53
54
55
56
57
58
//
// SCMovieCell.m
// scanorama
//
// Created by Lion User on 07/09/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "SCMovieCell.h"
@implementation SCMovieCell
@synthesize delegate = _delegate;
@synthesize timeLabel = _timeLabel;
@synthesize movieLabel = _movieLabel;
@synthesize movieEnLabel = _movieEnLabel;
@synthesize directorLenghLabel = _directorLenghLabel;
@synthesize yearsCountryLabel = _yearsCountryLabel;
@synthesize favoriteButton = _favoriteButton;
@synthesize thumbImage = _thumbImage;
@synthesize cinema = _cinema;
@synthesize city = _city;
@synthesize date = _date;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}
-(void) setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
[super setHighlighted:highlighted animated:animated];
self.favoriteButton.highlighted = NO;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
self.favoriteButton.highlighted = NO;
// Configure the view for the selected state
}
-(void) favoriteButtonClicked:(id)sender {
[self.delegate movieCell:self favoriteButtonClicked:sender];
}
@end