|
4 | 4 | By [XMARTLABS](http://xmartlabs.com).
|
5 | 5 |
|
6 | 6 | [](https://travis-ci.org/xmartlabs/XLForm)
|
7 |
| -[](https://github.com/xmartlabs/XLForm/releases) |
| 7 | +<a href="https://cocoapods.org/pods/XLForm"><img src="https://img.shields.io/cocoapods/v/XLForm.svg" alt="CocoaPods compatible" /></a> |
8 | 8 |
|
9 | 9 | **If you are looking for Swift native implementation we have recently created [Eureka], a complete re-design of XLForm in Swift.** *Do not panic, We will continue maintaining and improving XLForm, obj-c rocks!!*
|
10 | 10 |
|
@@ -866,6 +866,7 @@ You may want to set up another properties of the `UITableViewCell`. To set up an
|
866 | 866 | You just have to add the properties to `cellConfig` or `cellConfigAtConfigure` dictionary property of `XLFormRowDescriptor`.
|
867 | 867 | The main difference between `cellConfig` and `cellConfigAtConfigure` is the time when the property is set up. `cellConfig` properties are set up each time a cell is about to be displayed. `cellConfigAtConfigure`, on the other hand, set up the property just after the init method of the cell is called and only one time.
|
868 | 868 |
|
| 869 | +Since version 3.3.0 you can also use `cellConfigForSelector` to configure how the cells of the `XLFormOptionsViewController` look like when it is shown for a selector row. |
869 | 870 |
|
870 | 871 | For instance if you want to set up the placeholder you can do the following:
|
871 | 872 |
|
@@ -1085,6 +1086,21 @@ XLFormRowDescriptor* row = ...
|
1085 | 1086 | row.height = 55;
|
1086 | 1087 | ```
|
1087 | 1088 |
|
| 1089 | +#### How to change the appearance of the cells of a selector view controller (XLFormOptionsViewController) |
| 1090 | + |
| 1091 | +To change the appearance of the cells of a XLFormOptionsViewController you can use the `cellConfigForSelector` property on the row descriptor. |
| 1092 | +Example: |
| 1093 | +``` |
| 1094 | +[row.cellConfigForSelector setObject:[UIColor redColor] forKey:@"textLabel.textColor"]; |
| 1095 | +``` |
| 1096 | + |
| 1097 | +#### How to limit the characters of a XLFormTextFieldCell or a XLFormTextViewCell |
| 1098 | + |
| 1099 | +You can make this happen using the `textFieldMaxNumberOfCharacters` and the `textViewMaxNumberOfCharacters` respectively. |
| 1100 | +``` |
| 1101 | +[row.cellConfigAtConfigure setObject:@(20) forKey:@"textViewMaxNumberOfCharacters"]; |
| 1102 | +``` |
| 1103 | + |
1088 | 1104 | Installation
|
1089 | 1105 | --------------------------
|
1090 | 1106 |
|
|
0 commit comments