Is there any way to replace the keyboard as you can do with the Android? If not completely replace, is there a way to extend it and add additional functionality?
You can extend the keyboard view by adding a custom inputAccessoryView as a property to your textField or textView, or you can replace the keyboard by adding a custom inputView.
Related
I want to make a button looking as in the picture:
Source: Settingsapp from Huawei
I don't want to use a graphic for the arrow if that is possible, but use a special component which uses this arrow by default.
You can use ListView to make a button with Images and Texts or can put your items in a LinearLayout
I have to implement a rich text editor, For which i have to create a custom keyboard. But i don't know how can i use custom keyboard with UIWebview. I must have to use UIWebview because i have to java script also in my editor.
Check this article link
Custom Keyboard in UIWebView He suggests to use a UITextField as a "media" when you detect keyboard coming up inside a UIWebView. Thus, you can use whatever Keyboard type you want on the UITextField. After users taps something, copy the text in UITextField the media via JavaScript ActiveDocument.
What are the rules I need to follow, when creating a custom keyboard for a UITextView?
Is it OK to use a subclass of UIView?
Do I need to implement a specific protocol?
Should it contain a variable with a specific type and name?
Anything else?
At this point I have already made my own keyboard with the buttons; and it shows up when the UITextView object becomes the FirstResponder as expected. But I cannot use it and I would like to know if there is a "proper way" or if I just have to find my own way to make things work.
Thanks in advance.
Set inputView property of UITextView with your custom keyboard & refer to this link:
UITextView inputView
I have a table listing some strings, and what I want is when I tap the add button on the navigation bar, a keyboard with a textField would jump up, so I can input a string in the textField, then when I tap the return key, the keyboard disappear as well as the textField, and the new string is added to the table.
I already make up a nib file with a toolBar containing a textField, and I just failed to go on.
How can I implement this idea? Use the inputAccessoryView? If so, that means the inputAccessoryView of the textField which belongs to the toolBar is gonna be the toolBar itself!
This seem kind of weird and I have not been able to make it work till now.
Or is there another way for this idea?
Thanks a lot!
I've solved the problems by using notification instead of inputAccessoryView.
There is a sample code in XCode called "KeyboardAccessory", and it gives a good example about using keyboard notifications!
Or custom a view with a tab, and set it as the textField's inputAccessoryView, that would also work!
I have attached a toolbar with a UITextField and UIButton to the keyboard when it becomes the first responder via the user taping inside the textfield
textField.inputAccessoryView = theToolbar;
Problem is, the toolbar disappears when the keyboard is dismissed, thus preventing any further input.
Any ideas on how to make the toolbar go back to the bottom of the screen rather than off it completely?
I'm thinking a delegate method might help but Im really not too sure. It seems once the inputAccessoryView always the inputAccessoryView :(
Cheers
The input accessory view is automatically dismissed with the input view (the keyboard, in this case). Generally you do not want to have an input accessory view in your view hierarchy. Instead, if you want your toolbar to scroll up when the keyboard is shown, you should follow the guidelines for Managing the Keyboard.
You could try using an additional toolbar that is offscreen as the inputAccessoryView, which could "fake" the appearance of what you are trying to do. Alternatively, have you tried adding the toolbar back to the bottom of the screen using
[self.view addSubview:theToolbar];
when the keyboard reaches the bottom of the screen? You can use keyboard notifications for this.