davdroman / Bohr

Settings screen composing framework
MIT License
1.26k stars 83 forks source link

Cell with UIStepper #31

Closed gmoledina closed 8 years ago

gmoledina commented 8 years ago

New BOTableViewCell subclass with a UIStepper.

All parameters can directly be configured in the stepper :

[self.boTableViewController addSection:[BOTableViewSection sectionWithHeaderTitle:@"Text" handler:^(BOTableViewSection *section) {
    [section addCell:[BOStepperTableViewCell cellWithTitle:@"Font size" key:@"fontsize" handler:^(BOStepperTableViewCell *cell) {
        cell.stepper.minimumValue = 10;
        cell.stepper.maximumValue = 22;
        cell.stepper.stepValue = 1;
    }]];
}]];
davdroman commented 8 years ago

Thanks a lot. Really cool and straightforward. Merging! :+1: