I'm designing a custom keyboard for iOS 8. It works fine on any UITextField but when it's in UIWebView, it shows predictions. Since it's allowed to have custom keyboard in iOS 8 I assume there should be a way to disable this view. Any help would be appreciated. Red area of the following picture:
I found a workaround solution for this problem. If you add type="email" instead of type="text" in your HTML file like bellow, iOS keyboard won't show the predictive view :)
<input type="email"/>
I temporarily mark this answer as the solution but if someone finds a way to do it from Objective-C part, I'll test and accept that answer as the solution.
Related
Im very new to kentico development wise and I'm trying to work to a design given to me.
I'm currently trying to tie up the smart search web part to show as a text input with a font awesome search icon as the button (with no button text). Is there any easy way to do this? Or should I resort to making a copy of the Smart search control and extending it out?
The html designed has just
<button type="submit"><i class="fa fa-search"></i></button>
is there an easy way to put this into a new layout for Smart search?
Thank you Andrew
You could use a web part before and after to wrap web part code html and class wrapper and than apply the style to the button via CSS
In most of the cases, you could benefit from custom web part layout:
https://docs.kentico.com/k11/custom-development/developing-web-parts/using-custom-web-part-layouts
But smart search in this case does consist of two controls which are kinda buried inside so to insert this to control directly (CMSModules\SmartSearch\Controls\SearchDialog).
Solution 1: you can apply this by adding a custom layout for the smart search but I am not sure this will work
Solution 2: clone the web part and modify the Html as needed
I am developing a webview app.
I need that the webview covers all the content (all the space available!) but I can't get to this...
I've tried several ways but stil don't understand how to tell the webview to autofit depending on the screen.
Here is my situation now:
And this if I rotate the device
I guess this means that I'm not working in the right way, eh ? Can anybody lead me to this right?
thank you
Add this 4 constraint like this for your webView.
I'd like to add the imagebutton control to my windows store app, however when I install the Winrt Xaml Toolkit using NuGet it does not allow me (using the intellisense) to add any new controls. All I'd like to do is be able to specify an image for an appBarButton when hovered and an image when pressed. I find it slightly ridiculous that Microsoft has made it so difficult. Any help is MUCH appreciated.
it's funny how I can spend hours on programming with no success, then the next morning find the answer in 5 minutes. Here's the answer I needed, was found at
How can i change background image of a button when hover or click in XAML for Windows 8?
I needed to add this xml namespace at the top of the page...
xmlns:controls="using:WinRTXamlToolkit.Controls"
Then this works.
<controls:ImageButton HorizonalAlignment="Center"
NormalStateImageSource="normal.png"
HoverStateImageSource="hover.png"
PressedStateImageSource="pressed.png" />
Hope this helps someone else who has the same question.
Is there a way to change the text in iOS and Android for the two buttons which showing up inside the Picture Preview screen after you take a photo using MvvmCross PictureChooser plugin?
I have searched on it but I can't seam to find anything.
Thank you!
There's no way provided by MvvmCross to do this.
The source code to the picture chooser is in https://github.com/MvvmCross/MvvmCross/tree/v3.1/Plugins/Cirrious/PictureChooser
On Droid, this uses the standard ActionGetContent intent - https://github.com/MvvmCross/MvvmCross/blob/v3.1/Plugins/Cirrious/PictureChooser/Cirrious.MvvmCross.Plugins.PictureChooser.Droid/MvxPictureChooserTask.cs#L37
On iOS, this uses the standard UIImagePickerController - https://github.com/MvvmCross/MvvmCross/blob/v3.1/Plugins/Cirrious/PictureChooser/Cirrious.MvvmCross.Plugins.PictureChooser.Touch/MvxImagePickerTask.cs
So to customise these, you'll need to replace this code or to look to see if there are any "standard" ways on each platform.
Hi I am new to IPhone paltfom.
And I wonder how can I underline a text with UIWebView?
I know this is quite simple, but I couldn't get any clue from the menual
can anybody show me some code snippet?
The text should be a passed-in parameter.
thank you very much.
In the HTML content loaded by UIWebView, use
<span style="text-decoration: underline;">text-to-underline</span>
or
<u>text-to-underline</u>
Doesn't seem to work properly for me. and and tags work, but not , or CSS "text-decoration: underline;" It may be that the underline is not being scaled up as high as the rest of the page - e.g., a bug. I'm not sure