Skip to content

New architecture and easier customisation of cell dimensions

Choose a tag to compare

@bpoplauschi bpoplauschi released this 08 May 11:14
· 59 commits to master since this release

The 2.0.0 release brings in a new class architecture, a TextView based input, mechanisms for cell customisation and bug fixes:

  • class architecture refactoring 87d7230
    • BPFormInfoCell no longer subclasses BPFormCell, but UITableViewCell
    • BPFormCellProtocol contains all the methods for a cell that is member of a BPFormViewController table. At this point, implemented by BPFormCell and BPFormInfoCell
    • BPFormInputCell became an abstract class, with usable subclasses BPFormInputTextFieldClass and BPFormInputTextViewClass
    • renamed BPFormFloatLabelInputCell to BPFormFloatInputTextFieldCell (subclass of BPFormInputTextFieldCell)
    • renamed BPFormMultiLineFloatLabelInputCell to BPFormFloatInputTextViewCell (subclass of BPFormInputTextViewCell)
  • cell dimensions customization: easy to achieve using customCellHeight, spaceToNextCell, customContentHeight, customContentWidth
  • Moved validation icon outside the text input control (textfield, textview) c4f7bba
  • Added keyboard mode to help with using the form view controller in a UIPopover with auto layout #2 thanks @snown
  • fixed keyboard disappear table view animation 499177a 4c95725
  • updated input cell validation, for optional cells, so that they aren't validated if empty 8a88078
  • Renamed BPTextFieldValidateBlockWithPatternAndMessage to BPValidateBlockWithPatternAndMessage 85eb9d3