键盘工具栏的快速集成--HcCustomKeyboard

源项目地址:HcCustomKeyboard

HcCustomKeyboard是一个键盘工具栏控件:

效果:

HcCustomKeyboard使用很方便:

三部:

添加控件->操作处理->移除控件

//添加键盘控件
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [[HcCustomKeyboard customKeyboard] textViewShowView:self customKeyboardDelegate:self];
}
//移除键盘控件
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [[HcCustomKeyboard customKeyboard] reset];
}
//点击键盘上的发布按钮执行的操作 可以拿到文本框的内容
-(void)talkBtnClick:(UITextView *)textViewGet; {
    NSLog(@"%@",textViewGet.text);
}

项目演示: HcCustomKeyboardDemo (提取码:b407)

原文地址:https://www.cnblogs.com/gaoxiaoniu/p/5321800.html