# UUKeyboardInputView **Repository Path**: yxwApp/UUKeyboardInputView ## Basic Information - **Project Name**: UUKeyboardInputView - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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](https://github.com/ZhipingYang/UUKeyboardInputView/raw/master/Demo/UUKeyboardInputViewTests/inputView.gif) **apply with scrollview** ![Flipboard playing multiple GIFs](https://github.com/ZhipingYang/UUKeyboardInputView/raw/master/Demo/UUKeyboardInputViewTests/inputView2.gif) ## API ```objective-c + (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 ```objective-c [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](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod "UUKeyboardInputView" ``` ## Author XcodeYang, xcodeyang@gmail.com ## License UUKeyboardInputView is available under the MIT license. See the LICENSE file for more info.