MMRestaurantViewController Class Reference
Inherits from | UIViewController |
Conforms to | RBStoryboardLinkSource UICollectionViewDataSource UICollectionViewDelegate UIGestureRecognizerDelegate UIPopoverControllerDelegate UISearchBarDelegate |
Declared in | MMRestaurantViewController.h MMRestaurantViewController.m |
Overview
The restaurant view controller. This displays a single restaurant in detail. Information such as restaurant name, rating, description, etc. This is where the restaurant’s menu is displayed. This view will also allow the user to filter through the menu, either by rating, category or name.
Tasks
-
currentMerchantId
property -
viewModel
property -
merchantNameLabel
property -
merchantPhoneNumberLabel
property -
merchantRatingLabel
property -
merchantDescriptionTextView
property -
merchantImageView
property -
merchantInformationContainer
property -
ratingView
property -
menuItemsCollectionView
property -
merchantHoursLabel
property -
merchantAddressLabel
property -
popOverController
property -
searchBar
property -
reviewOrderBySegmentControl
property -
parentScrollView
property -
revPopOver
property
Properties
currentMerchantId
The current selected merchant.
@property (nonatomic, strong) NSNumber *currentMerchantId
Declared In
MMRestaurantViewController.h
menuItemsCollectionView
UICollectionView that displays the menu items
@property (nonatomic, weak) IBOutlet UICollectionView *menuItemsCollectionView
Declared In
MMRestaurantViewController.h
merchantAddressLabel
Merchant Address Label
@property (nonatomic, weak) IBOutlet UILabel *merchantAddressLabel
Declared In
MMRestaurantViewController.h
merchantDescriptionTextView
The UITextView for the merchant description
@property (nonatomic, weak) IBOutlet UITextView *merchantDescriptionTextView
Declared In
MMRestaurantViewController.h
merchantHoursLabel
Merchant Hours Label
@property (nonatomic, weak) IBOutlet UILabel *merchantHoursLabel
Declared In
MMRestaurantViewController.h
merchantImageView
The UIImageView for the merchant image
@property (nonatomic, weak) IBOutlet UIImageView *merchantImageView
Declared In
MMRestaurantViewController.h
merchantInformationContainer
The view that contains the merchant information on the top left of the screen. It also is responsible for drawing the grey border as well.
@property (nonatomic, weak) IBOutlet UIView *merchantInformationContainer
Declared In
MMRestaurantViewController.h
merchantNameLabel
The UILabel for the mechant name
@property (nonatomic, weak) IBOutlet UILabel *merchantNameLabel
Declared In
MMRestaurantViewController.h
merchantPhoneNumberLabel
The UILabel for the merchant phone number
@property (nonatomic, weak) IBOutlet UILabel *merchantPhoneNumberLabel
Declared In
MMRestaurantViewController.h
merchantRatingLabel
The UILabel for the merchant rating
@property (nonatomic, weak) IBOutlet UILabel *merchantRatingLabel
Declared In
MMRestaurantViewController.h
parentScrollView
The scroll view that encapsulates the views on the page.
@property (nonatomic, weak) IBOutlet UIScrollView *parentScrollView
Declared In
MMRestaurantViewController.h
popOverController
Popover View Controller
@property (nonatomic, strong) UIPopoverController *popOverController
Declared In
MMRestaurantViewController.h
ratingView
The rounded background for restaurant rating
@property (nonatomic, weak) IBOutlet UIView *ratingView
Declared In
MMRestaurantViewController.h
revPopOver
View Controller that gets displayed inside of a popover.
@property (nonatomic, strong) MMReviewPopOverViewController *revPopOver
Declared In
MMRestaurantViewController.h
reviewOrderBySegmentControl
The segment control that allows one to order the reviews in the collection view.
@property (nonatomic, strong) UISegmentedControl *reviewOrderBySegmentControl
Declared In
MMRestaurantViewController.h