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

#import <Y4NutritionCollectionViewCell.h>

Inheritance diagram for Y4NutritionCollectionViewCell:
Inheritance graph
[legend]
Collaboration diagram for Y4NutritionCollectionViewCell:
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 Y4NutritionCollectionViewCell.h.

Method Documentation

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  frame
implementation

Definition at line 15 of file Y4NutritionCollectionViewCell.m.

15  :(CGRect)frame {
16 
17  self = [super initWithFrame:frame];
18 
19  if (self) {
20 
21 
22  // Initialization code
23  NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"Y4NutritionItemView" owner:self options:nil];
24 
25  if ([arrayOfViews count] < 1) {
26  return nil;
27  }
28 
29  if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) {
30  return nil;
31  }
32  }
33 
34  return self;
35 
36 }

◆ prepareForReuse()

- (void) prepareForReuse
implementation

Definition at line 79 of file Y4NutritionCollectionViewCell.m.

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

Property Documentation

◆ imageView

- (UIImageView *) imageView
readwritenonatomicstrong

Definition at line 12 of file Y4NutritionCollectionViewCell.h.

◆ textLabel

- (UILabel *) textLabel
readwritenonatomicstrong

Definition at line 13 of file Y4NutritionCollectionViewCell.h.


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