Skip to content

Commit b28c902

Browse files
committed
release version 3.3.0
1 parent dc5f1e6 commit b28c902

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
### Latest:
4+
### Version 3.3.0:
5+
* Added `cellConfigForSelector` to style XLFormOptionsViewController
6+
* Added properties to **limit number of characters** in `XLFormTextFieldCell` and `XLFormTextViewCell`
7+
* Minor fixes
8+
9+
### Version 3.2.0:
510
* Added XL_APP_EXTENSIONS macro to allow app extensions (@MuscleRumble #357)
611
* Added shouldChangeTextInRange delegate call for UITextView. (@kiancheong #782)
712
* Added support for NSFormatter (@ziogaschr, @fwhenin, @bhirt-bpl #306)

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ XLForm
44
By [XMARTLABS](http://xmartlabs.com).
55

66
[![Build Status](https://travis-ci.org/xmartlabs/XLForm.svg?branch=master)](https://travis-ci.org/xmartlabs/XLForm)
7-
[![license](https://img.shields.io/badge/pod-3.2.0-blue.svg)](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>
88

99
**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!!*
1010

@@ -866,6 +866,7 @@ You may want to set up another properties of the `UITableViewCell`. To set up an
866866
You just have to add the properties to `cellConfig` or `cellConfigAtConfigure` dictionary property of `XLFormRowDescriptor`.
867867
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.
868868

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.
869870

870871
For instance if you want to set up the placeholder you can do the following:
871872

@@ -1085,6 +1086,21 @@ XLFormRowDescriptor* row = ...
10851086
row.height = 55;
10861087
```
10871088

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+
10881104
Installation
10891105
--------------------------
10901106

XLForm.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'XLForm'
3-
s.version = '3.2.0'
3+
s.version = '3.3.0'
44
s.license = { :type => 'MIT' }
55
s.summary = 'XLForm is the most flexible and powerful iOS library to create dynamic table-view forms.'
66
s.description = <<-DESC

0 commit comments

Comments
 (0)