Today's Menu  Portugal
journal and plan nutrition
Instance Methods | Properties | List of all members
Y4NutritionCollectSelectViewCell Class Reference

#import <Y4NutritionCollectSelectViewCell.h>

Inheritance diagram for Y4NutritionCollectSelectViewCell:
Inheritance graph
[legend]
Collaboration diagram for Y4NutritionCollectSelectViewCell:
Collaboration graph
[legend]

Instance Methods

(id) - initWithFrame: [implementation]
 
(void) - prepareForReuse [implementation]
 

Properties

IBOutlet UIImageView * imageView
 
IBOutlet UILabel * textLabel
 

Detailed Description

Definition at line 11 of file Y4NutritionCollectSelectViewCell.h.

Method Documentation

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  frame
implementation

Definition at line 17 of file Y4NutritionCollectSelectViewCell.m.

17  :(CGRect)frame {
18 
19  self = [super initWithFrame:frame];
20  // NSLog(@"NutritionSelectCollectCell.initWithFrame: height: %f", frame.size.height);
21 
22  if (self) {
23 
24 
25  // Initialization code
26  NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"Y4NutritionSelectedItemViewCell" owner:self options:nil];
27 
28  if ([arrayOfViews count] < 1) {
29  return nil;
30  }
31 
32  if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) {
33  return nil;
34  }
35  }
36 
37  return self;
38 
39 }

◆ prepareForReuse()

- (void) prepareForReuse
implementation

Definition at line 78 of file Y4NutritionCollectSelectViewCell.m.

79 {
80  [super prepareForReuse];
81 
82  [self.imageView removeFromSuperview];
83  [self.textLabel removeFromSuperview];
84  // [self.textLabel setText:@"Prepare4Reuse"];
85  // self.textLabel.textColor = [UIColor colorWithRed:0.05 green:0.3 blue:0.1 alpha:1.0];
86 
87  self.imageView = nil;
88  self.textLabel = nil;
89 }

Property Documentation

◆ imageView

- (UIImageView *) imageView
readwritenonatomicstrong

Definition at line 12 of file Y4NutritionCollectSelectViewCell.h.

◆ textLabel

- (UILabel *) textLabel
readwritenonatomicstrong

Definition at line 13 of file Y4NutritionCollectSelectViewCell.h.


The documentation for this class was generated from the following files: