BSKeyboardControls icon indicating copy to clipboard operation
BSKeyboardControls copied to clipboard

add control like uisearchbar

Open shoaibhussan opened this issue 12 years ago • 1 comments

I want to implement BSkeyboardcontrol for uisearchbar ..but it does't works

shoaibhussan avatar Feb 04 '13 05:02 shoaibhussan

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; } }

arsalananwar avatar Jul 01 '13 13:07 arsalananwar