BSKeyboardControls
BSKeyboardControls copied to clipboard
add control like uisearchbar
I want to implement BSkeyboardcontrol for uisearchbar ..but it does't works
Update this method reloadTextFields in BSKeyboardControls.m with following method.
/* Reload text fields */
- (void)reloadTextFields { // Add the keyboard control as accessory view for all of the text fields // Also set the delegate of all the text fields to self for (id textField in self.textFields) { if ([textField isKindOfClass:[UITextField class]]) ((UITextField *) textField).inputAccessoryView = self; else if ([textField isKindOfClass:[UITextView class]]) ((UITextView *) textField).inputAccessoryView = self; else if ([textField isKindOfClass:[UISearchBar class]]) ((UISearchBar *) textField).inputAccessoryView = self; } }