[![CI Status](http://img.shields.io/travis/Jakub Knejzlik/GNTextFieldsCollectionManager.svg?style=flat)](https://travis-ci.org/Jakub Knejzlik/GNTextFieldsCollectionManager)
GNTextFieldsCollectionManager handles textFields automaticaly, so the basic setup could be this:
- (void)viewDidLoad
{
[super viewDidLoad];
self.textFieldManager = [[GNTextFieldsCollectionManager alloc] initWithView:self.view];
}
Usualy You will need to get handle last field Return key. Delegate can be used for this:
- (void)viewDidLoad
{
[super viewDidLoad];
self.textFieldManager = [[GNTextFieldsCollectionManager alloc] initWithView:self.view];
self.textFieldManager.delegate = self; // GNTextFieldsCollectionManagerDelegate protocol
}
-(void)textFieldsCollectionManager:(GNTextFieldsCollectionManager *)manager lastTextFieldShouldReturn:(UITextField *)textField;{
// ...
}
Important thing is that the manager assigns itself as delegate of all used textFields.
To run the example project, clone the repo, and run pod install
from the Example directory first.
GNTextFieldsCollectionManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GNTextFieldsCollectionManager"
GNTextFieldsCollectionManager is available under the MIT license. See the LICENSE file for more info.