文件名称:ios-带输入栏的键盘.zip
文件大小:45KB
文件格式:ZIP
更新时间:2022-07-31 13:44:04
键盘
带输入栏的弹起键盘,可以为一些无源输入控件添加输入源. 使用方法: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]; }];
【文件预览】:
LTInputAccessoryViewdemo
----LTInputAccessoryViewdemoTests()
--------Info.plist(733B)
--------LTInputAccessoryViewdemoTests.m(960B)
----.DS_Store(6KB)
----LTInputAccessoryViewdemo()
--------Assets.xcassets()
--------main.m(344B)
--------AppDelegate.h(287B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------.DS_Store(6KB)
--------LTInputAccessoryView()
--------ViewController.h(225B)
--------Info.plist(1KB)
--------ViewController.m(2KB)
----LTInputAccessoryViewdemo.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(22KB)
--------xcuserdata()
----LTInputAccessoryViewdemoUITests()
--------LTInputAccessoryViewdemoUITests.m(1KB)
--------Info.plist(733B)