Skip to content

JianGong/UUKeyboardInputView

 
 

Repository files navigation

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

Installation

+ (void)showBlock:(UUInputAccessoryBlock _Nullable)block;

+ (void)showKeyboardType:(UIKeyboardType)type
                   Block:(UUInputAccessoryBlock _Nullable)block;

+ (void)showKeyboardType:(UIKeyboardType)type
                 content:(NSString * _Nullable)content
                   Block:(UUInputAccessoryBlock _Nullable)block;

// more flexible config
+ (void)showKeyboardConfige:(UUInputAccessoryConfige _Nullable)confige
                      block:(UUInputAccessoryBlock _Nullable)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 ;
        
    }];

About

It helps some view who isn't have textField or texeView to input words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%