Inherits from UIViewController
Conforms to UIPopoverControllerDelegate
Declared in MMRatingPopoverViewController.h
MMRatingPopoverViewController.m

Overview

The rating popover which shows the circle rating.

Properties

cancelButton

reference to the cancel button

@property (nonatomic, weak) IBOutlet UIButton *cancelButton

Declared In

MMRatingPopoverViewController.h

cancelRating

Close the rating box, and return nothing.

@property (nonatomic, copy) RatingsReturnBlock cancelRating

Declared In

MMRatingPopoverViewController.h

currentRating

The current rating

@property (nonatomic, assign) CGFloat currentRating

Declared In

MMRatingPopoverViewController.h

doneButton

reference to the done button

@property (nonatomic, weak) IBOutlet UIButton *doneButton

Declared In

MMRatingPopoverViewController.h

menuItem

The current menu item

@property (nonatomic, strong) MMMenuItem *menuItem

Declared In

MMRatingPopoverViewController.h

menuItemImage

A picture of the menu item view

@property (nonatomic, weak) IBOutlet UIImageView *menuItemImage

Declared In

MMRatingPopoverViewController.h

menuItemMerchant

The Current menu item merchant

@property (nonatomic, strong) MMMerchant *menuItemMerchant

Declared In

MMRatingPopoverViewController.h

menuItemName

The Menu item which is being rated

@property (nonatomic, weak) IBOutlet UILabel *menuItemName

Declared In

MMRatingPopoverViewController.h

merchantName

Label to show restaurnt who the menu item belongs to

@property (nonatomic, weak) IBOutlet UILabel *merchantName

Declared In

MMRatingPopoverViewController.h

oldView

old view for returning

@property (nonatomic, strong) UIView *oldView

Declared In

MMRatingPopoverViewController.h

ratingView

The Rating view

@property (nonatomic, weak) IBOutlet MMRatingView *ratingView

Declared In

MMRatingPopoverViewController.h

selectedRating

The rating the user selected.

@property (nonatomic, copy) RatingsReturnBlock selectedRating

Declared In

MMRatingPopoverViewController.h

thisPopOverController

popovercontroller created to call this controller

@property (nonatomic, strong) UIPopoverController *thisPopOverController

Declared In

MMRatingPopoverViewController.h

Instance Methods

cancelReview:

Cancel the input of a rating

- (IBAction)cancelReview:(id)sender

Parameters

sender

UIButton

Declared In

MMRatingPopoverViewController.h

moveRatingWheelWithTouch:

Move the rating wheel based on touched point.

- (void)moveRatingWheelWithTouch:(CGPoint)touchLocation

Parameters

touchLocation

CGPoint

Declared In

MMRatingPopoverViewController.h

submitReview:

Save the rating the user selected

- (IBAction)submitReview:(id)sender

Parameters

sender

UIButton

Declared In

MMRatingPopoverViewController.h