Inherits from NSObject
Conforms to MMDBFetcherDelegate
Declared in MMUserNameValidator.h
MMUserNameValidator.m

Overview

  • A concrete validator that checks the server to see if

  • a user name is available.

Properties

userNameTextField

  • A text field that contains the user name to be validated.
@property (nonatomic, weak) UITextField *userNameTextField

Declared In

MMUserNameValidator.h

Instance Methods

beginValidation

  • Begins an asynchronous request to validate the user name
- (void)beginValidation

Discussion

  • against the server database. A notification is posted to

  • the default notification center once the validation is

  • completed. The notification name is stored in

  • kAvailableUserNameNotification.

Declared In

MMUserNameValidator.h

initWithUserNameTextField:

  • A constructor that accepts a text field which contains
- (id)initWithUserNameTextField:(UITextField *)textField

Discussion

  • a user name to be validated

*

  • @param textField The text field that will contain the user name to be validated.

Declared In

MMUserNameValidator.h