uuk

UUKeyboardInputView

It helps some viewes,like button、cell、segment, which cann't respond those inputView as textField or texeView them do.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

51

Maintenance

Last Commit

4yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

UUKeyboardInputView

It helps some viewes,like button、cell、segment, which cann't respond those inputView as textField or texeView them do.

Simple application

Flipboard playing multiple GIFs

apply with scrollview

Flipboard playing multiple GIFs

API


+ (void)showBlock:(UUInputViewResultBlock)block;

+ (void)showKeyboardType:(UIKeyboardType)type
                   block:(UUInputViewResultBlock)block;

+ (void)showKeyboardType:(UIKeyboardType)type
                 content:(nullable NSString *)content
                   block:(UUInputViewResultBlock)block;

// more flexible config
+ (void)showKeyboardConfige:(nullable UUInputAccessoryConfige)confige
                      block:(UUInputViewResultBlock)block;

UIKeyboardType

  • UIKeyboardTypeDefault,
  • UIKeyboardTypeNumbersAndPunctuation,
  • UIKeyboardTypeNumberPad,
  • UIKeyboardTypeNamePhonePad ...

Usage

    [UUInputAccessoryView showKeyboardConfige:^(UUInputConfiger * _Nonnull configer) {
        configer.keyboardType = UIKeyboardTypeNumberPad;
        configer.content = @"content";
        configer.backgroundColor = [UIColor colorWithWhite:0 alpha:0.5];

    } block:^(NSString * _Nonnull contentStr) {
        // code
        if (contentStr.length == 0) return ;
        
    }];

Installation

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

pod "UUKeyboardInputView"

Author

XcodeYang, xcodeyang@gmail.com

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100