CustomKeyboard
Provide Previous, Next, Done buttons for iOS keyboard
Install / Use
/learn @kalvish21/CustomKeyboardREADME
CustomKeyboard
Provide Previous, Next, Done buttons for iOS keyboard

Usage
The CustomKeyboard class has a delegate class CustomKeyboardDelegate. Any class requiring the CustomKeyboard implementation will need to implement the delegate functions. These functions are:
1.) This function will receive a call when the user clicks on the next button. The selectedId is the integer value of which textbox the user was in BEFORE clicking next.
(void)nextClicked:(NSUInteger)selectedId;
2.) This function will be called when the user clicks on previous. The variable selectedId will have the id of the box that the user was on before clicking previous.
(void)previousClicked:(NSUInteger)selectedId;
3.) This function will be called when the user clicks on done.
(void)doneClicked:(NSUInteger)selectedId;
After implementing the three delegate functions, create an instance of the CustomKeyboard class and assign the delegate to that object (i.e. customKeyboard.delegate = self;).
When showing a keyboard for a particular box, inside the textFieldDidBeginEditing function, the following functions are available to create the toolbar above the keyboard:
1.) Generate a UIToolbar with Previous, Next, and Done. The variables prevEnabled and nextEnabled define if the buttons should be enabled or not (i.e. first box won't have previous enabled).
(UIToolbar *)getToolbarWithPrevNextDone:(BOOL)prevEnabled :(BOOL)nextEnabled;
2.) Generate a UIToolbar with only the Done button.
(UIToolbar *)getToolbarWithDone;
The functions above can be used in the following way:
[textField setInputAccessoryView:[customKeyboard getToolbarWithPrevNextDone:FALSE :TRUE]];
This would show Previous, Next, and Done. Previous button would be disabled.
License
This project is released under the MIT License:
http://opensource.org/licenses/MIT
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
