Skip to content

A reactive mode for UITextField's text value change observation , including manual editing and code setting;

Notifications You must be signed in to change notification settings

luzizheng/UCSTextFieldReact

Repository files navigation

Installation:

pod 'UCSTextFieldReact'

Usage:

import UCSTextFieldReact.h

use block

self.textField.ucs_textChangeHandler = ^(NSString *text) {

NSLog(@"text = %@",text);

};

use selector

[self.textField ucs_bindTextReactHandler:self andSelector:@selector(handleValueChanging:andTextField:)];

-(void)handleValueChanging:(NSString *)text andTextField:(UITextField *)textField

{

NSLog(@"text = %@",text);

}

About

A reactive mode for UITextField's text value change observation , including manual editing and code setting;

Resources

Stars

Watchers

Forks

Packages

No packages published