Inherits from UICollectionViewController
Conforms to ADBannerViewDelegate
UIPickerViewDelegate
UITabBarDelegate
Declared in MakePicksViewController.h
MakePicksViewController.m

Properties

picker

@property (retain, nonatomic) IBOutlet UIPickerView *picker

Instance Methods

alertView:clickedButtonAtIndex:

Standard iOS Alert Box button handlers

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

Parameters

alertView

The Alert View

buttonIndex

Index to the button that was clicked

Declared In

MakePicksViewController.m

bannerView:didFailToReceiveAdWithError:

Standard iOS delegate to handle iAD display error

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error

Parameters

banner

The Banner

error

The Error

Declared In

MakePicksViewController.m

collectionView:cellForItemAtIndexPath:

Initialize a Cell in the Collection View

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

This Collection View

indexPath

Index to the Cell

Return Value

Return the Cell

Declared In

MakePicksViewController.m

collectionView:numberOfItemsInSection:

Return number of Items in the Section of the Collection View

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section

Parameters

collectionView

This Collection View

section

Section the Section

Return Value

Return the number of rows in the Collection

Declared In

MakePicksViewController.m

collectionView:viewForSupplementaryElementOfKind:atIndexPath:

Initialize Header in the Collection View

- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

this Collection View

kind

the kind of Collection View

indexPath

index to the Cell

Return Value

return the View

Declared In

MakePicksViewController.m

didReceiveMemoryWarning

Standard iOS delegate for handling memory warnings

- (void)didReceiveMemoryWarning

Declared In

MakePicksViewController.m

displayNextWeek

Helper function to display Next Week

- (void)displayNextWeek

Declared In

MakePicksViewController.m

displayPreviousWeek

Helper function to display Previous Week

- (void)displayPreviousWeek

Declared In

MakePicksViewController.m

displayProfileView

Helper function to display Profile View

- (void)displayProfileView

Declared In

MakePicksViewController.m

displayRecordsView

Helper function to display Records View

- (void)displayRecordsView

Declared In

MakePicksViewController.m

displayWinnersView

Helper function to display Winners View

- (void)displayWinnersView

Declared In

MakePicksViewController.m

getScheduleAsync:

Helper method to call the Get Schedule Service Asychronously

- (void)getScheduleAsync:(int)week

Parameters

week

The week to get the schedule for

Declared In

MakePicksViewController.m

hideMenu

Hide Menu Bar.

- (void)hideMenu

Declared In

MakePicksViewController.m

numberOfComponentsInPickerView:

Set the Weight Picker with how many components it will have.

- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView

Parameters

pickerView

The Picker View

Return Value

Return number of components in the Picker

Declared In

MakePicksViewController.m

numberOfSectionsInCollectionView:

Return number of Sections in the Collection View

- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView

Parameters

collectionView

this Collection View

Return Value

Return number of Sections

Declared In

MakePicksViewController.m

onClickAwayTeam:

Handler for the Away Team button.

- (IBAction)onClickAwayTeam:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickHelpSystem:

Handler for the Help System button

- (IBAction)onClickHelpSystem:(id)sender

Parameters

sender

Sender of the event

Declared In

MakePicksViewController.m

onClickHomeTeam:

Handler for the Home Team button.

- (IBAction)onClickHomeTeam:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickMenu:

Handler for the Menu button

- (IBAction)onClickMenu:(id)sender

Parameters

sender

Sender of the event

Declared In

MakePicksViewController.m

onClickNextWeek:

Button handler for the Next Week button.

- (IBAction)onClickNextWeek:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickPrevWeek:

Button handler for the Previous Week button.

- (IBAction)onClickPrevWeek:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickProfile:

Button handler for the Profile button.

- (IBAction)onClickProfile:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickResults:

Button handler for the Results button.

- (IBAction)onClickResults:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickSave:

Button handler for the Save button.

- (IBAction)onClickSave:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickWeight:

Handler for the Weight button.

- (IBAction)onClickWeight:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickWeightCancel:

Button handler for the Weight Picker Cancel button.

- (IBAction)onClickWeightCancel:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickWeightDone:

Button handler for the Weight Picker Done button.

- (IBAction)onClickWeightDone:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickWinners:

Button handler for the Winner button.

- (IBAction)onClickWinners:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

onClickeBackButton:

Button handler for the Navigation Back button.

- (void)onClickeBackButton:(id)sender

Parameters

sender

The sender for the Event

Declared In

MakePicksViewController.m

pickerView:didSelectRow:inComponent:

Handler for selecting a row in the Weight Picker.

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

Parameters

pickerView

The Picker View

row

The row that got selected

component

The component

Declared In

MakePicksViewController.m

pickerView:numberOfRowsInComponent:

Set the Weight Picker with all the Weights

- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component

Parameters

pickerView

The Picker View

component

The Component

Return Value

Return number of rows in the Picker

Declared In

MakePicksViewController.m

pickerView:titleForRow:forComponent:

Set the values for the Weight Picker.

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component

Parameters

pickerView

The Picker View

row

The row to set the value for

component

The Component

Return Value

Return the text for the Picker Row

Declared In

MakePicksViewController.m

pickerView:widthForComponent:

Set the Weight Picker with the width of each row for a given component.

- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component

Parameters

pickerView

The Picker View

component

The Component

Return Value

Return the width of the Picker

Declared In

MakePicksViewController.m

prepareForSegue:sender:

Seque handler for passing data from this View into the Office Pool View

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender

Parameters

void

sender The sender for the Event

Declared In

MakePicksViewController.m

runTipsWizard

Run Tips Wizard.

- (void)runTipsWizard

Declared In

MakePicksViewController.m

showMenu

Show Menu Bar.

- (void)showMenu

Declared In

MakePicksViewController.m

supportedInterfaceOrientations

Standard iOS delegate to get the allowed orientation of the application.

- (NSUInteger)supportedInterfaceOrientations

Return Value

Return orientation mask

Declared In

MakePicksViewController.m

tabBar:didSelectItem:

Standard iOS delegate to handle the Tab Bar.

- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item

Parameters

tabBar

tabBar The Tab Bar

item

item Description of item selected

Declared In

MakePicksViewController.m

viewDidLoad

Load and initialize the Controller for the Picks View.

- (void)viewDidLoad

Declared In

MakePicksViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

MakePicksViewController.m

willAnimateRotationToInterfaceOrientation:duration:

Standard iOS delegate when this view is rotated.

- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration

Parameters

duration

Duration of orientation

toInterfaceOrientation

Orientation being displayed

Declared In

MakePicksViewController.m