In My application i develope a custom keyboard in one of local language.Now this keyboard works fine with UITextField and UITextView.For both these i implement the Custom keyboard like this.
textField.inputView = Customkeyboard;
textView.inputView = Customkeyboard;
But when i implement its for UISearchBar
searchBar.inputView = Customkeyboard;
its gives me Following Error.
error: object cannot be set – either readonly property or no setter found
i also set its property and Synthesis,but unable to solve this problem.Can any one help me to solve this problem.Thanx.
According to class documentation of UIResponder
Okay, create a class inherited from UISearchBar like below .h and .m files. In your .h file ad the folowing lines
In your current controller where you are using this, replace UISearchBar with SearchBar.