mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared/editable_cell_table_view_controller] Clean numberOfRows
This commit is contained in:
@@ -45,10 +45,7 @@ bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * text
|
||||
|
||||
int EditableCellTableViewController::numberOfRows() {
|
||||
int numberOfModelElements = numberOfElements();
|
||||
if (numberOfModelElements >= maxNumberOfElements()) {
|
||||
return 1 + numberOfModelElements;
|
||||
}
|
||||
return 2 + numberOfModelElements;
|
||||
return 1 + numberOfModelElements + (numberOfModelElements < maxNumberOfElements());
|
||||
}
|
||||
|
||||
KDCoordinate EditableCellTableViewController::rowHeight(int j) {
|
||||
|
||||
Reference in New Issue
Block a user