Is there a way to customize the iphone keyboard? Say I want the number pad with a comma button and a period button added to it.
What you are looking for is a custom IME (Input Method) which is not directly supported in iOS (true custom IMEs have been developed, but require jailbreak). You can create a custom view, but just for your application.
Yes, as of iOS 3.2. See this answer. You may not be able to edit the default keyboard, but it's not difficult to reproduce with your own view.
Related
I want to have a custom keyboard (without full-screen keyboard) instead of default keyboard in my apple tv app?
If possible, what are the approaches should I follow?
Any suggestions appreciated.
The SearchTemplate is the only keyboard available for TVML, and there isn't a whole lot you can do with it.
But with TVML, there's 2 ways you can do redo the keyboard
1) using section with lockup and some TVJS, to create your own keyboard. Each lockup can be a character and onclick, can trigger tvjs to record and display the character into a label. Should be relative easy to implement, specially if you are only dealing with a small set of characters, like numbers.
2) custom element, as described in the docs, you can use native code to define any element and.. you can make your own keyboard that way.
=-=-=-=-=-=
Update
Somehow I missed the form template. This template included a keyboard too. And, you can *customize this keyboard!
The textField element provides a field for users to enter text, which also accepts the keyboardType attribute for selecting the type of keyboard to display. It even has support for number and URL inputs.
(*basic customization lol)
I have a UITextField that only requires specific character input, and I was wondering if it was possible to create a custom keyboard inside an iOS 8 app. Specifically the characters i want are a collection of logical symbols (which have unicode values) and some standard characters like parenthesis etc.
I would ideally like to override/overlay the current buttons on a UIKeyboard but still have the same kind of functionality such as being able to input characters where the cursor position is currently in the text field.
I know that you can create custom keyboards through an app extension but this is not what i want, i just want a keyboard to be used inside the app and no where else. If i am wrong, can i create an app extension keyboard to only be used within the app? that doesn't have to installed via Settings?
You can override the inputView property on your UITextField and return a view containing the keyboard. You must implement the keyboard functionality yourself, there is no way to access anything on the built in keyboard.
I am trying to make an update for my trivia app and want it so that when the user types in the answer he/she only has the option to click A,B,C, or D. Is this possible? and if so, would apple allow this and how do I do it?
You could also just create a custom view with four buttons that appears when necessary. It would be easier than customizing the keyboard, and depending on how you design and implement it, it'll probably look better than an action sheet. UIView provides a rich set of methods to animate views with ease.
Yes, you can customise the keyboard, all the documentation is in the developer library. But it sounds to me you'd be better off using a UIActionSheet if all you are doing is picking from four options.
Edit: For reference, have a look at Custom Views for Data Input in Apple's Text Programming Guide for iOS.
UIWebView's keyboard is pretty cool with its next/previous and done buttons. However, I was not able to find and change the button titles. The titles are always in english no matter in which language the system is running.
I have been looking for the answer to this for a while for my PhoneGap based application, and at last I found the answer here: UIWebview Localization.
The clue is to set 'CFBundleAllowMixedLocalizations' to 'Yes' in your info.plist. That really made my day :)
Unless you have your own keyboard designed by you which overrides stock one, you can't do that.
Stock keyboard's language is taken from iOS language setting (via Preferences > General > International).
You can set your own view on top of the keyboard. It is really easy after 3.2 and I have some sample code in this answer. That means you can use your own buttons and even set localized text there.
EDIT: That was a bad answer :) Sorry, I didn't see the 'mobile-safari' tag. But in my case, I also get localized versions of the keyboard previous/next buttons.
On a localized Iphone (Language set to Hebrew) when we view a webpage using safari and tap on an input field we get the keyboard up with the "Next/Previous/Done" buttons in Hebrew.
When we view the same webpage using a UIWebview embedded inside our application the "Next/Previous/Done" buttons are always in English.
We were thinking that we might need to add a translation file for those fields but we do not know the keys to use.
Any pointers on this?
Edit: Started a bounty to hopefully get some pointers.
Edit: Attaching two pictures
In your info.plist you can set a value called CFBundleAllowMixedLocalizations, if you check that everything should be translated to the right localized language.
You seem to be knowledgable, but have you tried creating the UIWebView in Interface Builder, then create a localization on the .xib file?
It seems the right way to go, since the keyboard pops up without app intervention; Cocoa Touch is the one to handle that. I think those extra buttons are not part of the keyboard per se, but added by the WebView.