Click here to support Nimbus development and make a donation at www.pledgie.com !
An iOS framework whose growth is bounded by O(documentation).
NITextInputFormElementCell Class Reference

Overview

The cell sibling to NITextInputFormElement.

Displays a simple text field that fills the entire content view.

NITextInputCellExample1.png
Example of a NITextInputFormElementCell.

Definition at line 114 of file NIFormCellCatalog.h.

Inheritance diagram for NITextInputFormElementCell:
NIFormElementCell <NICell>

Methods

(BOOL) - shouldUpdateCellWithObject:
(CGFloat) + heightForObject:atIndexPath:tableView:

Method Documentation

- (BOOL) shouldUpdateCellWithObject: (id)  object [required, inherited]

Called when a cell is created and reused.

Implement this method to customize the cell's properties for display using the given object.

+ (CGFloat) heightForObject: (id)  object
atIndexPath: (NSIndexPath *)  indexPath
tableView: (UITableView *)  tableView 
[static, optional, inherited]

Should be used in tableView:heightForRowAtIndexPath: to calculate dynamic cell heights.

The following is an appropiate implementation in your tableView's delegate:

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  CGFloat height = tableView.rowHeight;
  id object = [(NITableViewModel *)tableView.dataSource objectAtIndexPath:indexPath];
  id class = [object cellClass];
  if ([class respondsToSelector:@selector(heightForObject:atIndexPath:tableView:)]) {
    height = [class heightForObject:object atIndexPath:indexPath tableView:tableView];
  }
  return height;
}
Generated for Nimbus by doxygen 1.7.4-20110629