When you look at Settings - General - Keyboard you can see text "Double tapping the space bar will insert a period followed by a space".
Question: how can I do something similar in my own app settings?
Got pretty close by using PSGroupSpecifier for text, but can't figure out how to center the text. Centering is the missing feature I'm now looking for.
No, you can't do that with AppStore Settings bundles.
You can fake centering by inserting a lot of spaces at the beginning.
(Centering the text is restricted to internal "preference bundles".)
changed for ios 4.0 - > make use for the footerText field of a group specifier.
follow:
http://developer.apple.com/library/ios/#documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Articles/PSGroupSpecifier.html#//apple_ref/doc/uid/TP40007009-SW1
all you will need is in there.
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)
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.
I am new to Iphone programming. I want to add a password module to my application with look and feel as iphone's "Enter Passcode". Is it possible. I earlier tried this by using four text boxes and allowing allowing to enter only one alphabet in each.
This had the problem of cursor in the text boxes. So i disabled all these, took an invisible text box. Allowed user to enter passcode in it. And copied the text in each of those disable text box on textediting event. This works as required. However the last text box of the four never displays text. Is this because i have chosen text editing event. Please help.
There's a Google Code project that has implemented this pretty nicely:
http://code.google.com/p/kpasscode/
Hope this helps!
You mean the 4 number pin pad?
I implemented something similar
xib file with 12 UIButtons 4 UILabels and 4 UIImageViews.
Is there any way I could force PSTextFieldSpecifier be read-only in iPhone Settings view?
It has auto-scaling font size, center justification and without title looks just perfect for copyright notice. The problem is that it's editable text. Even when if I would reset value each time app starts up, it's still pretty not-too-nice behaviour.
Backup plan: use two PSTitleValueSpecifiers... just not sure if copyright notice is valid, when it's spread over two bold titles and two non-bold values. But that's a different question.
if you want to display a readonly textfield you can use PSTitleValueSpecifier
My users need to enter latitude and longitude, and of course I need to verify that the values entered are legitimate lat/long value. I'd like to have a keyboard layout that does some of this for me (eliminating alphabetic characters, punctuation, etc, and leaving only the numbers and +/-). The number pad keyboard doesn't seem to do it (missing +/-) and neither do any other keyboard layouts that come with the SDK. Does anyone know if there is a way to provide that capability without doing my own keyboard IME and jailbreaking the phone?
Thanks!
I know this is answer is way late, but this topic was still relevant to me. Therefore I have hope the following will help someone who comes across this page.
Bryan S. Gruver posted a full Xcode project that lambdabunny could modify ever so slightly in order to achieve their aim. You can find it here:
http://brygruver.squarespace.com/blog/2009/10/1/creating-a-custom-number-pad.html
Update
The Squarespace link is now broken. Another option is:
https://github.com/lnafziger/Numberpad
How about placing a "+/-" button next to your UITextView that would switch the sign of the entered text? Or a "+" button that appears to the left of it that switches the button label from "+" to "-" each time you tap it.
You don't have to jailbreak.
If you create a view to simulate the keyboard you're still following the SDK rules.