Skip to content

jakubknejzlik/GNTextFieldsCollectionManager

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
Pod
 
 
 
 
 
 
 
 
 
 

GNTextFieldsCollectionManager

[![CI Status](http://img.shields.io/travis/Jakub Knejzlik/GNTextFieldsCollectionManager.svg?style=flat)](https://travis-ci.org/Jakub Knejzlik/GNTextFieldsCollectionManager) Version License Platform

Usage

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;{
    // ...
}

Note

Important thing is that the manager assigns itself as delegate of all used textFields.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

GNTextFieldsCollectionManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GNTextFieldsCollectionManager"

License

GNTextFieldsCollectionManager is available under the MIT license. See the LICENSE file for more info.

About

GNTextFieldsCollectionManager

Resources

License

Stars

Watchers

Forks

Packages

No packages published