Inherits from UITableViewController
Conforms to MMRegistrationPopoverDelegate
UIPopoverControllerDelegate
UITextFieldDelegate
Declared in MMRegistrationViewController.h
MMRegistrationViewController.m

Overview

This view allows a user to provide additional information for their profile.

We provide the user with options to fill in their city, gender, birthday.

Properties

activeField

  • Current selected UITextField
@property (nonatomic, weak) IBOutlet UITextField *activeField

Declared In

MMRegistrationViewController.h

birthdayField

  • Users chosen birthday textfield
@property (nonatomic, weak) IBOutlet UITextField *birthdayField

Declared In

MMRegistrationViewController.h

birthdayPopoverViewController

  • Birthday Popover
@property (nonatomic, strong) MMRegistrationPopoverViewController *birthdayPopoverViewController

Declared In

MMRegistrationViewController.h

cityField

  • Users chosen city textfield
@property (nonatomic, weak) IBOutlet UITextField *cityField

Declared In

MMRegistrationViewController.h

cityPopoverViewController

  • City Popover
@property (nonatomic, strong) MMRegistrationPopoverViewController *cityPopoverViewController

Declared In

MMRegistrationViewController.h

confirmPasswordField

  • Users chosen password confirm textfield
@property (nonatomic, weak) IBOutlet UITextField *confirmPasswordField

Declared In

MMRegistrationViewController.h

emailField

  • Users chosen email textfield
@property (nonatomic, weak) IBOutlet UITextField *emailField

Declared In

MMRegistrationViewController.h

firstNameField

  • Users chosen first name textfield
@property (nonatomic, weak) IBOutlet UITextField *firstNameField

Declared In

MMRegistrationViewController.h

genderField

  • Users chosen gender textfield
@property (nonatomic, weak) IBOutlet UITextField *genderField

Declared In

MMRegistrationViewController.h

genderPopoverViewController

  • Gener Popover
@property (nonatomic, strong) MMRegistrationPopoverViewController *genderPopoverViewController

Declared In

MMRegistrationViewController.h

lastNameField

  • Users chosen last name textfield
@property (nonatomic, weak) IBOutlet UITextField *lastNameField

Declared In

MMRegistrationViewController.h

locationPopoverController

  • The UIPopover controller
@property (nonatomic, strong) UIPopoverController *locationPopoverController

Declared In

MMRegistrationViewController.h

passwordField

  • Users chosen password textfield
@property (nonatomic, weak) IBOutlet UITextField *passwordField

Declared In

MMRegistrationViewController.h

provinceField

  • Users chosen province textfield
@property (nonatomic, weak) IBOutlet UITextField *provinceField

Declared In

MMRegistrationViewController.h

provincePopoverViewController

  • Province Popover
@property (nonatomic, strong) MMRegistrationPopoverViewController *provincePopoverViewController

Declared In

MMRegistrationViewController.h

scrollView

  • The scroll view to move the view up for the keyboard
@property (nonatomic, weak) IBOutlet UIScrollView *scrollView

Declared In

MMRegistrationViewController.h

userNameValidator

  • used to check if the username is valid, and avaliable.
@property (nonatomic, strong) MMUserNameValidator *userNameValidator

Declared In

MMRegistrationViewController.h

userProfile

  • The current user that we are “creating”
@property (readwrite) MMUser *userProfile

Declared In

MMRegistrationViewController.h

validationManager

@property (nonatomic, strong) MMValidationManager *validationManager

Declared In

MMRegistrationViewController.h

Instance Methods

didSelectBirthday:

  • Send the selected value of the birthday from
- (void)didSelectBirthday:(NSDate *)birthday

Discussion

  • the popover view controller to the parent

  • view controller.

*

  • @param birthday The date value of the birthday

  •           that was selected.
    

Declared In

MMRegistrationPopoverDelegate.h

didSelectCity:

  • Send the selected value of the city from
- (void)didSelectCity:(NSString *)city

Discussion

  • the popover view controller to the parent

  • view controller.

*

  • @param city The city that was selected.

Declared In

MMRegistrationPopoverDelegate.h

didSelectGender:

  • Send the selected gender from
- (void)didSelectGender:(NSString *)gender

Discussion

  • the popover view controller to the parent

  • view controller.

*

  • @param gender The gender that was selected.

Declared In

MMRegistrationPopoverDelegate.h

didSelectProvince:

  • Send the selected value of the province from
- (void)didSelectProvince:(NSString *)province

Discussion

  • the popover view controller to the parent

  • view controller.

*

  • @param province The province that was selected.

Declared In

MMRegistrationPopoverDelegate.h

getPopoverViewControllerForTextField:

  • Returns the popover for the selected textfield, if needed
- (id)getPopoverViewControllerForTextField:(UITextField *)textField

Discussion

*

  • @param textField UITextField

*

  • @return Returns the view controller for the UITextField

Declared In

MMRegistrationViewController.h

getPopoverViewSizeForTextField:

  • Returns the size needed for the popover
- (CGSize)getPopoverViewSizeForTextField:(UITextField *)textField

Discussion

*

  • @param textField UITextField

*

  • @return CGSize needed to show all content.

Declared In

MMRegistrationViewController.h

next:

  • Next Button
- (IBAction)next:(id)sender

Discussion

*

  • @param sender UIButton

Declared In

MMRegistrationViewController.h

unwindToLoginScreen:

  • Back button
- (IBAction)unwindToLoginScreen:(UIStoryboardSegue *)segue

Discussion

*

  • @param segue UIStoryboardSegue

Declared In

MMRegistrationViewController.h