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
-
currentMerchantIdproperty -
viewModelproperty -
merchantNameLabelproperty -
merchantPhoneNumberLabelproperty -
merchantRatingLabelproperty -
merchantDescriptionTextViewproperty -
merchantImageViewproperty -
merchantInformationContainerproperty -
ratingViewproperty -
menuItemsCollectionViewproperty -
merchantHoursLabelproperty -
merchantAddressLabelproperty -
popOverControllerproperty -
searchBarproperty -
reviewOrderBySegmentControlproperty -
parentScrollViewproperty -
revPopOverproperty
Properties
currentMerchantId
The current selected merchant.
@property (nonatomic, strong) NSNumber *currentMerchantIdDeclared In
MMRestaurantViewController.hmenuItemsCollectionView
UICollectionView that displays the menu items
@property (nonatomic, weak) IBOutlet UICollectionView *menuItemsCollectionViewDeclared In
MMRestaurantViewController.hmerchantAddressLabel
Merchant Address Label
@property (nonatomic, weak) IBOutlet UILabel *merchantAddressLabelDeclared In
MMRestaurantViewController.hmerchantDescriptionTextView
The UITextView for the merchant description
@property (nonatomic, weak) IBOutlet UITextView *merchantDescriptionTextViewDeclared In
MMRestaurantViewController.hmerchantHoursLabel
Merchant Hours Label
@property (nonatomic, weak) IBOutlet UILabel *merchantHoursLabelDeclared In
MMRestaurantViewController.hmerchantImageView
The UIImageView for the merchant image
@property (nonatomic, weak) IBOutlet UIImageView *merchantImageViewDeclared In
MMRestaurantViewController.hmerchantInformationContainer
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 *merchantInformationContainerDeclared In
MMRestaurantViewController.hmerchantNameLabel
The UILabel for the mechant name
@property (nonatomic, weak) IBOutlet UILabel *merchantNameLabelDeclared In
MMRestaurantViewController.hmerchantPhoneNumberLabel
The UILabel for the merchant phone number
@property (nonatomic, weak) IBOutlet UILabel *merchantPhoneNumberLabelDeclared In
MMRestaurantViewController.hmerchantRatingLabel
The UILabel for the merchant rating
@property (nonatomic, weak) IBOutlet UILabel *merchantRatingLabelDeclared In
MMRestaurantViewController.hparentScrollView
The scroll view that encapsulates the views on the page.
@property (nonatomic, weak) IBOutlet UIScrollView *parentScrollViewDeclared In
MMRestaurantViewController.hpopOverController
Popover View Controller
@property (nonatomic, strong) UIPopoverController *popOverControllerDeclared In
MMRestaurantViewController.hratingView
The rounded background for restaurant rating
@property (nonatomic, weak) IBOutlet UIView *ratingViewDeclared In
MMRestaurantViewController.hrevPopOver
View Controller that gets displayed inside of a popover.
@property (nonatomic, strong) MMReviewPopOverViewController *revPopOverDeclared In
MMRestaurantViewController.hreviewOrderBySegmentControl
The segment control that allows one to order the reviews in the collection view.
@property (nonatomic, strong) UISegmentedControl *reviewOrderBySegmentControlDeclared In
MMRestaurantViewController.h