illyabusigin / CYRKeyboardButton

A drop-in keyboard button that mimics the look, feel, and functionality of the native iOS keyboard buttons
MIT License
350 stars 46 forks source link

how can add CYRKeyboardButton on keyboard extension #14

Open senjaliyavishal opened 8 years ago

senjaliyavishal commented 8 years ago

-add CYRKeyboardButton on Custom keyboard extension.

khantthulinn commented 7 years ago

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;
}
carloskekwa commented 7 years ago

can u elaborate please?

carloskekwa commented 7 years ago

@khantthulinn can u elaborate please about your answer?