Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

add control like uisearchbar #12

Open
shoaibhussan opened this issue Feb 4, 2013 · 1 comment
Open

add control like uisearchbar #12

shoaibhussan opened this issue Feb 4, 2013 · 1 comment

Comments

@shoaibhussan
Copy link

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

@arsalananwar
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants