Inherits from UITableViewController
Conforms to MMDBFetcherDelegate
UICollectionViewDataSource
UICollectionViewDelegate
UIPopoverControllerDelegate
UITableViewDataSource
UITextViewDelegate
Declared in MMMenuItemViewController.h
MMMenuItemViewController.m

Overview

The controller that shows the selected menu item a user selects.

Properties

activeField

Current Selected Text View

@property (nonatomic, weak) IBOutlet UITextView *activeField

Declared In

MMMenuItemViewController.h

currentMenuItem

The item that the user touched before

@property MMMenuItem *currentMenuItem

Declared In

MMMenuItemViewController.h

currentMerchant

The current mechant of the menu item

@property MMMerchant *currentMerchant

Declared In

MMMenuItemViewController.h

currentOrientation

Current Orientation of the device.

@property (nonatomic) UIDeviceOrientation currentOrientation

Declared In

MMMenuItemViewController.h

eatenThisButton

I’ve eaten this button

@property (nonatomic, weak) IBOutlet UIButton *eatenThisButton

Declared In

MMMenuItemViewController.h

itemDescription

The menu items description

@property (nonatomic, weak) IBOutlet UITextView *itemDescription

Declared In

MMMenuItemViewController.h

itemImage

The menu items description

@property (nonatomic, weak) IBOutlet UIImageView *itemImage

Declared In

MMMenuItemViewController.h

itemName

The label for the item name

@property (nonatomic, weak) IBOutlet UILabel *itemName

Declared In

MMMenuItemViewController.h

itemRating

The Items Rating Label

@property (nonatomic, weak) IBOutlet UILabel *itemRating

Declared In

MMMenuItemViewController.h

itemRatingView

The menu items rating

@property (nonatomic, weak) IBOutlet UIView *itemRatingView

Declared In

MMMenuItemViewController.h

menuModificationsView

The tablview that holds the avaliable Restrictions for the menu item

@property (nonatomic, weak) IBOutlet UITextView *menuModificationsView

Declared In

MMMenuItemViewController.h

popOverController

Popover view controller

@property (nonatomic, strong) UIPopoverController *popOverController

Declared In

MMMenuItemViewController.h

rating

Current Rating of menu Item

@property (nonatomic, strong) NSNumber *rating

Declared In

MMMenuItemViewController.h

ratingButton

Rate button

@property (nonatomic, weak) IBOutlet UIButton *ratingButton

Declared In

MMMenuItemViewController.h

ratingsCollectionView

Menu Item View for showing reviews.

@property (nonatomic, weak) IBOutlet UICollectionView *ratingsCollectionView

Declared In

MMMenuItemViewController.h

reviewSegment

Switch the ratings view to show top rated first or most recent

@property (nonatomic, strong) UISegmentedControl *reviewSegment

Declared In

MMMenuItemViewController.h

reviewView

@property (nonatomic, weak) IBOutlet UIView *reviewView

Declared In

MMMenuItemViewController.h

reviewViewFlag

@property BOOL reviewViewFlag

Declared In

MMMenuItemViewController.h

userReviewField

The input review textview for a user submitted review.

@property (nonatomic, weak) IBOutlet UITextView *userReviewField

Declared In

MMMenuItemViewController.h

Instance Methods

clearButton:

Clear the rating field, and current set rating (From the circle view)

- (IBAction)clearButton:(id)sender

Parameters

sender

UIButton

Declared In

MMMenuItemViewController.h

iveEatenThis:

Current user has eaten the menu item.

- (IBAction)iveEatenThis:(id)sender

Parameters

sender

UIButton

Declared In

MMMenuItemViewController.h

rateItem:

Rate the menu item button selected

- (IBAction)rateItem:(id)sender

Parameters

sender

UIButton

Declared In

MMMenuItemViewController.h

saveButton:

Save the Rating the user inputed

- (IBAction)saveButton:(id)sender

Parameters

sender

UIButton

Declared In

MMMenuItemViewController.h

shareMenuItem:

Share the menu item via Social Media

- (IBAction)shareMenuItem:(id)sender

Parameters

sender

UIButton

Declared In

MMMenuItemViewController.h