illyabusigin / CYRKeyboardButton

A drop-in keyboard button that mimics the look, feel, and functionality of the native iOS keyboard buttons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can add CYRKeyboardButton on keyboard extension

senjaliyavishal opened this issue · comments

-add CYRKeyboardButton on Custom keyboard extension.

  • CYRKeyboardButton not working with keyboard extension.
  • i think issue found on "keyboardButton.textInput = self.textView"; line.
  • i have bellow library like.....
    https://github.com/kulpreetchilana/Custom-iOS-Keyboards
    how can add CYRKyboardButton on PMCustomKeyboard.m file please help me.
  • please download Custom-iOS-Keyboards project and in this project found PMCustomKeyboard.m.

It is working. I have already tried that. You can't use self.textView like that. Instead, create your own textfield (no need to be iboutlet, just UITextfield) and make sure delegate is set to your view. After that, add this one. It is super cool.

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
    [self sendText:string];  // actually this one. I write inside that func >>         [self.textDocumentProxy insertText:str];
    return NO;
}

can u elaborate please?

@khantthulinn can u elaborate please about your answer?