MMSpecialsCollectionViewController Class Reference
Inherits from | UICollectionViewController |
Conforms to | MMDBFetcherDelegate RBStoryboardLinkSource UIPopoverControllerDelegate UISearchBarDelegate UIToolbarDelegate |
Declared in | MMSpecialsCollectionViewController.h MMSpecialsCollectionViewController.m |
Tasks
Other Methods
-
showTypes
property -
selectedDate
property -
dateIndex
property -
labelView
property -
specials
property -
specialsSaved
property -
currentDate
property -
typesPopoverController
property -
weekPopoverController
property -
typesController
property -
weekController
property -
– addShowType:
-
– removeShowType:
-
– containsShowType:
-
– loadSelectedDate
Other Methods
Properties
currentDate
- todays date.
@property (nonatomic, readwrite) NSDate *currentDate
Declared In
MMSpecialsCollectionViewController.h
dateIndex
- Date the user has selected to show a week of
@property (atomic) NSMutableArray *dateIndex
Declared In
MMSpecialsCollectionViewController.h
labelView
- Date the user has selected to show a week of
@property (nonatomic) UILabel *labelView
Declared In
MMSpecialsCollectionViewController.h
selectedDate
- Date the user has selected to show a week of
@property (atomic) NSDate *selectedDate
Declared In
MMSpecialsCollectionViewController.h
showTypes
- The types we can show (Food, Dessert, Drinks specials)
@property (atomic) NSMutableArray *showTypes
Declared In
MMSpecialsCollectionViewController.h
specials
- All specials by key an date
@property (atomic) NSMutableDictionary *specials
Declared In
MMSpecialsCollectionViewController.h
specialsSaved
- All specials by key an date
@property (atomic) NSDictionary *specialsSaved
Declared In
MMSpecialsCollectionViewController.h
typesController
- The view controller that is presented within the types
@property (nonatomic, strong) MMSpecialsTypeController *typesController
Discussion
- popover.
Declared In
MMSpecialsCollectionViewController.h
typesPopoverController
- The types popover view controller, done programmically
@property (nonatomic, strong) UIPopoverController *typesPopoverController
Declared In
MMSpecialsCollectionViewController.h
Instance Methods
addShowType:
- Adds a Special type to show, and reloads the view as Needed.
- (void)addShowType:(NSString *)type
Declared In
MMSpecialsCollectionViewController.h
containsShowType:
- Checks if a Type is “Currently” being displayed.
- (bool)containsShowType:(NSString *)type
Declared In
MMSpecialsCollectionViewController.h
didRetrieveSpecials:forDate:withResponse:
The DBFetcher Sends our info here. We need the date to place it accordingly.
- (void)didRetrieveSpecials:(NSArray *)webSpecials forDate:(NSDate *)date withResponse:(MMDBFetcherResponse *)response
Declared In
MMSpecialsCollectionViewController.m
filter:
Loads the popover for the user when they click filter
- (void)filter:(UIBarButtonItem *)sender
Declared In
MMSpecialsCollectionViewController.m
getCurrentDatePlusDays:
Returns a New Date from the current date + the number of days specified.
- (NSDate *)getCurrentDatePlusDays:(NSUInteger)days
Declared In
MMSpecialsCollectionViewController.m
getDate:PlusDays:
Returns a New Date from the date specified + the number of days specified.
- (NSDate *)getDate:(NSDate *)date PlusDays:(NSUInteger)days
Declared In
MMSpecialsCollectionViewController.m
loadDate:forType:
Request specials for a given day, with a Given Type
- (void)loadDate:(NSDate *)date forType:(NSString *)type
Declared In
MMSpecialsCollectionViewController.m
loadDay:
Request specials for a given day, with a Given Type
- (void)loadDay:(NSDate *)date
Declared In
MMSpecialsCollectionViewController.m
loadSelectedDate
- load the a week from the data into the collection view
- (void)loadSelectedDate
Discussion
*
- @param date NSDate to display from
Declared In
MMSpecialsCollectionViewController.h
prepareForSegue:sender:
Prepares for the popup window, sets up the proper types needed.
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
Declared In
MMSpecialsCollectionViewController.m
removeShowType:
- Removes a Special type to show, and reloads the view as Needed.
- (void)removeShowType:(NSString *)type
Declared In
MMSpecialsCollectionViewController.h