Skip to content

Commit 6a7040e

Browse files
committed
Merge pull request xmartlabs#331 from xmartlabs/readme_update_FAQ
Added FAQ question for issue xmartlabs#329
2 parents 6e5427d + 73abfd5 commit 6a7040e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,14 @@ You can change the font or any other table view cell property using the `cellCon
834834

835835
For further details, please take a look at [UICustomizationFormViewController.m](/Examples/Objective-C/Examples/UICustomization/UICustomizationFormViewController.m) example.
836836

837+
####How to set min/max for date cells?
838+
839+
Each XLFormDateCell has a `minimumDate` and a `maximumDate` property. To set a datetime row to be a value in the next three days you would do as follows:
840+
```objc
841+
[row.cellConfigAtConfigure setObject:[NSDate new] forKey:@"minimumDate"];
842+
[row.cellConfigAtConfigure setObject:[NSDate dateWithTimeIntervalSinceNow:(60*60*24*3)] forKey:@"maximumDate"];
843+
```
844+
837845
####How to disable the entire form (read only mode).
838846
839847
`disable` XLFormDescriptor property can be used to disable the entire form. In order to make the displayed cell to take effect we should reload the visible cells ( [self.tableView reloadData] ).

0 commit comments

Comments
 (0)