Inherits from NSObject
Conforms to BCCellDelegate
Declared in BCAbstractField.h

Overview

This is a base class that it designed to be extended to add new types of form fields. The key method to implement is:

-createCell … Subclasses must return an instance of BCAbstractCell.

Tasks

Properties

cellColor

Overrides the property in BCForm or BCFormSection, for this specific field.

@property (nonatomic, strong) UIColor *cellColor

Discussion

Overrides the property in BCForm or BCFormSection, for this specific field.

Declared In

BCAbstractField.h

editable

Sets whether the field is writable or readonly.

@property (nonatomic) BOOL editable

Discussion

Sets whether the field is writable or readonly.

Declared In

BCAbstractField.h

label

Label for the field.

@property (nonatomic, strong, readonly) NSString *label

Discussion

Label for the field.

Declared In

BCAbstractField.h

section

The section that owns this field.

@property (nonatomic, weak) BCFormSection *section

Discussion

The section that owns this field.

Declared In

BCAbstractField.h

sectionTitleColor

Overrides the property in BCForm or BCFormSection, for this specific field.

@property (nonatomic, strong) UIColor *sectionTitleColor

Discussion

Overrides the property in BCForm or BCFormSection, for this specific field.

Declared In

BCAbstractField.h

selectedCellColor

Overrides the property in BCForm or BCFormSection, for this specific field.

@property (nonatomic, strong) UIColor *selectedCellColor

Discussion

Overrides the property in BCForm or BCFormSection, for this specific field.

Declared In

BCAbstractField.h

selectedTextColor

Overrides the property in BCForm or BCFormSection, for this specific field.

@property (nonatomic, strong) UIColor *selectedTextColor

Discussion

Overrides the property in BCForm or BCFormSection, for this specific field.

Declared In

BCAbstractField.h

textColor

Overrides the property in BCForm or BCFormSection, for this specific field.

@property (nonatomic, strong) UIColor *textColor

Discussion

Overrides the property in BCForm or BCFormSection, for this specific field.

Declared In

BCAbstractField.h

Class Methods

fieldWithLabel:

+ (id)fieldWithLabel:(NSString *)label

fieldWithLabel:cellColor:selectedCellColor:sectionTitleColor:

+ (id)fieldWithLabel:(NSString *)label cellColor:(UIColor *)cellColor selectedCellColor:(UIColor *)selectedCellColor sectionTitleColor:(UIColor *)sectionTitleColor

Instance Methods

cell

Returns the created cell instance.

- (BCAbstractCell *)cell

Discussion

Returns the created cell instance.

Declared In

BCAbstractField.h

createCellInstance

The key method to be implemented by sub-classes. This is the appropriate place to also specify a custom input view. To do this set cell.textField.inputView = <your input view> … this of course requires a text-field to capture the input, but the text field need not be a visible part of the cell.

- (BCAbstractCell *)createCellInstance

Discussion

The key method to be implemented by sub-classes. This is the appropriate place to also specify a custom input view. To do this set cell.textField.inputView = <your input view> … this of course requires a text-field to capture the input, but the text field need not be a visible part of the cell.

Declared In

BCAbstractField.h

formCellLostFocus:

- (void)formCellLostFocus:(BCAbstractCell *)cell

formCellWasFocused:

- (void)formCellWasFocused:(BCAbstractCell *)cell

initWithLabel:cellColor:selectedCellColor:sectionTitleColor:

- (id)initWithLabel:(NSString *)label cellColor:(UIColor *)cellColor selectedCellColor:(UIColor *)selectedCellColor sectionTitleColor:(UIColor *)sectionTitleColor

setValue:

Sets the value.

- (void)setValue:(id<NSObject>)value

Discussion

Sets the value.

Declared In

BCAbstractField.h

textValue

Returns the selected/set value as a string.

- (NSString *)textValue

Discussion

Returns the selected/set value as a string.

Declared In

BCAbstractField.h

value

Returns the selected/set value.

- (id<NSObject>)value

Discussion

Returns the selected/set value.

Declared In

BCAbstractField.h