带输入栏的键盘
查看次数:3108
下载次数:840
上传时间:2016-03-31
大小:44 B
带输入栏的弹起键盘,可以为一些无源输入控件添加输入源.
使用方法:LTInputAccessoryView* view = [LTInputAccessoryView new];
switch (sender.tag) {
case 0:{
//打开默认键盘
[view showBlock:^(NSString *contentStr) {
[self showAlertStr:contentStr];
}];
}
break;
case 1:{
[view showKeyboardType:UIKeyboardTypeNumbersAndPunctuation Block:^(NSString *contentStr) {
[self showAlertStr:contentStr];
}];
}
break;
case 2:{
[view showKeyboardType:UIKeyboardTypeNumbersAndPunctuation content:@"默认文字" Block:^(NSString *contentStr) {
[self showAlertStr:contentStr];
}];
收藏