Inherits from UIViewController
Conforms to MMDBFetcherDelegate
UIPopoverControllerDelegate
Declared in MMReviewPopOverViewController.h
MMReviewPopOverViewController.m

Overview

View Controller for the popover that is created when a user selects a review collection view cell.

Properties

callback

Call back variable

@property (nonatomic, copy) FinishCallback callback

Declared In

MMReviewPopOverViewController.h

currentRating

Number that is kept as the current rating for a review

@property (nonatomic, assign) CGFloat currentRating

Declared In

MMReviewPopOverViewController.h

desc

Reverence to the text view that contains the menu item description

@property (nonatomic, weak) IBOutlet UITextView *desc

Declared In

MMReviewPopOverViewController.h

edit

Reference to the Edit button

@property (nonatomic, weak) IBOutlet UIButton *edit

Declared In

MMReviewPopOverViewController.h

labelBack

Reference to the background for the rating display

@property (nonatomic, weak) IBOutlet UIView *labelBack

Declared In

MMReviewPopOverViewController.h

like

Reference to the Like button

@property (nonatomic, weak) IBOutlet UIButton *like

Declared In

MMReviewPopOverViewController.h

likecount

Reference to the UILabel that contains the amount of times something has been liked

@property (nonatomic, weak) IBOutlet UILabel *likecount

Declared In

MMReviewPopOverViewController.h

menuItem

The menu item that the rating is about

@property (nonatomic, strong) MMMenuItem *menuItem

Declared In

MMReviewPopOverViewController.h

menuItemImage

Reference to the menu Item picture

@property (nonatomic, weak) IBOutlet UIImageView *menuItemImage

Declared In

MMReviewPopOverViewController.h

menuItemName

Reference to a UILabel containgin the Menu Item Name

@property (nonatomic, weak) IBOutlet UILabel *menuItemName

Declared In

MMReviewPopOverViewController.h

menuItemReview

The review information for the menu item

@property (nonatomic, strong) MMMenuItemRating *menuItemReview

Declared In

MMReviewPopOverViewController.h

oldPopOverController

Reference kept for the last popover.

@property (nonatomic, strong) UIPopoverController *oldPopOverController

Declared In

MMReviewPopOverViewController.h

popOverController

Reference kept for the current popover.

@property (nonatomic, strong) UIPopoverController *popOverController

Declared In

MMReviewPopOverViewController.h

popOverNavigation

Reference to the Navigation Controller that is used throughout the app.

@property (nonatomic, strong) MMBaseNavigationController *popOverNavigation

Declared In

MMReviewPopOverViewController.h

ratingLabel

Reference to the UILabel that displays the rating of the item

@property (nonatomic, weak) IBOutlet UILabel *ratingLabel

Declared In

MMReviewPopOverViewController.h

report

Reference to the Report button

@property (nonatomic, weak) IBOutlet UIButton *report

Declared In

MMReviewPopOverViewController.h

restaurantName

Reference to a UILabel containing the Merchant Name

@property (nonatomic, weak) IBOutlet UILabel *restaurantName

Declared In

MMReviewPopOverViewController.h

reviewPopOver

Reference to the Rating Wheel popover controller for editing.

@property (nonatomic, strong) MMRatingPopoverViewController *reviewPopOver

Declared In

MMReviewPopOverViewController.h

selectedRestaurant

Restaurant that the menu item belongs too.

@property (nonatomic, strong) MMMerchant *selectedRestaurant

Declared In

MMReviewPopOverViewController.h

Instance Methods

cancelReview:

Called if the cancel button is clicked @param sender

- (IBAction)cancelReview:(id)sender

Declared In

MMReviewPopOverViewController.h

editReview:

Called if the edit button is clicked. @param sender

- (IBAction)editReview:(id)sender

Declared In

MMReviewPopOverViewController.h

isUserLoggedInAsAGuest

Sets up popover based on whether or not a user has an account or not

- (void)isUserLoggedInAsAGuest

Declared In

MMReviewPopOverViewController.m

likeReview:

Called if the like button is clicked @param sender

- (IBAction)likeReview:(id)sender

Declared In

MMReviewPopOverViewController.h

reportReview:

Called if the report button is clicked @param sender

- (IBAction)reportReview:(id)sender

Declared In

MMReviewPopOverViewController.h

setupHeader

Sets up the information about the review and populates fields

- (void)setupHeader

Declared In

MMReviewPopOverViewController.m

submitReview:

Called when the SUbmit button is clicked @param sender

- (IBAction)submitReview:(id)sender

Declared In

MMReviewPopOverViewController.h