-
Notifications
You must be signed in to change notification settings - Fork 0
/
RecipeTableCell.m
50 lines (34 loc) · 901 Bytes
/
RecipeTableCell.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
//
// RecipeTableCell.m
// WhatToEat
//
// Created by Creonopoulos Creon on 3/31/13.
// Copyright (c) 2013 apt.gr. All rights reserved.
//
#import "RecipeTableCell.h"
@implementation RecipeTableCell
@synthesize PrepTime,Difficulty,RecipeName;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
//this method hides the Preperation time label if the cell is editing
-(void) layoutSubviews {
[super layoutSubviews];
if (self.isEditing)
{
PrepTime.hidden = TRUE;
}
else
{
PrepTime.hidden = FALSE;
}
}
@end