Inherits from UICollectionViewCell
Declared in MMMenuItemCell.h
MMMenuItemCell.m

Overview

  • A custom collection view cell that represents

  • a menu item. The UI layout resides in an

  • external XIB file, namely

  • Resources/XIB/MenuItemCell.xib

Tasks

Properties

descriptionView

  • The label that displays a brief description of
@property (nonatomic, weak) IBOutlet UITextView *descriptionView

Discussion

  • the menu item.

Declared In

MMMenuItemCell.h

menuImageView

  • The image view where the picture of the menu item is
@property (nonatomic, weak) IBOutlet UIImageView *menuImageView

Discussion

  • loaded.

Declared In

MMMenuItemCell.h

priceLabel

  • The label that displays the price of
@property (nonatomic, weak) IBOutlet UILabel *priceLabel

Discussion

  • the menu item.

Declared In

MMMenuItemCell.h

ratingBg

  • The view that the rating label resides in. The background
@property (nonatomic, weak) IBOutlet UIView *ratingBg

Discussion

  • color for this view is set to a light grey color.

Declared In

MMMenuItemCell.h

ratinglabel

  • The label that displays the current rating for a
@property (nonatomic, weak) IBOutlet UILabel *ratinglabel

Discussion

  • menu item.

Declared In

MMMenuItemCell.h

restrictedImage

  • The label that displays whether or not a user can
@property (nonatomic, weak) IBOutlet UIImageView *restrictedImage

Discussion

  • consume a menu item. An exclamation point is displayed

  • in this label if a user cannot consume this menu item.

Declared In

MMMenuItemCell.h

titleView

  • The label that displays the name of
@property (nonatomic, weak) IBOutlet UITextView *titleView

Discussion

  • the menu item.

Declared In

MMMenuItemCell.h