How can i implement custom keyboard with UIWebview? - uiwebview

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.

Related

When adding the controls through the storyboard, the properties are not applied correctly

In my case, I added a UITextField in the storyboard and I tried to apply some properties through the property window. I enabled the Secure Text Entry property in the property window and I changed the text using the text property in the property window. When changing the text through text property, the UITextField in the storyboard doesn't display the password text rather it displayed the text which I typed in the text property. Can anyone please tell why it is not displaying the password character even though when the Secure Text Entry is enabled in the property window. For the reference, I have attached a video describing the issue which I have faced when adding control through a storyboard. Please download the video using the below link and provide me a better solution for the query.
Video Link: Demo Video
I tested this on XCode as well. This is a bug in VS for Mac's "iOS Designer".
When you run your app though, the text field will show secure characters, so you won't have to worry.
Alternatively, you can just right click on the Storyboard and Open with the native XCode Interface Builder instead, and edit the storyboard therein.
You should file a bug to VS for Mac for this!

How to make menu button in Android?

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

A keyboard with a UITextField

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!

inputAccessoryView not hide the view when -resignFirstResponder?

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.

iOS: Keyboard replacement

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.

Resources