voidstern / BPEditableTableViewCell

Some editable UITableViewCell subclasses for Cocoa Touch applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BPEditableTableViewCell

Some editable UITableViewCell subclasses for Cocoa Touch applications based on jon/BPEditableTableViewCell and lavoy/ALActionBlocks to quickly build settings screens (and whatever else you need editable UITableViewCells for).

Cell Types

  • BPSliderEditableTableViewCell
  • BPStepperEditableTableViewCell
  • BPSwitchEditableTableViewCell
  • BPTextFieldEditableTableViewCell

Both slider- and steppercells display the current value as text.

Usage

Here's a switch cell as example (It'll look exactly as you'd expect - a tableviewcell with a switch on it).

BPSwitchEditableTableViewCell *cell = [[BPSwitchEditableTableViewCell alloc] initWithLabel:@"Some Label" boolValue:YES reuseIdentifier:@"switchCell" andBlock:^(UISwitch *weakControl){
            BOOL someValue = weakControl.on;
        }];

About

Some editable UITableViewCell subclasses for Cocoa Touch applications


Languages

Language:Objective-C 100.0%