I'm developing a webapp on the iPhone. When entering text in a textfield, a keyboard pops up. Is there a way to change the wording for the "Done" key or hide it? I know how to change the "return" key, I want to change the blue "Done" key.
Thank you.
This has nothing to do with the web application itself , 'done' button is part of mobile safari user interface...No you can't to this from inside your web-app...
The only way to implement something like this (only for jailbroken devices) , is creating a mobilesubstrate hook for mobilesafari (exported as a dynamic library) , for changing any (possible) attributes of the desired subview...
Related
I am using an iPad with a bluetooth keyboard and am having some troubles. I basically have a website that after tapping search, pops up with a modal. The modal contains a summary of information & two buttons - a cancel and a print. My hope is to have the "Enter" key mean the user clicked on the "Print" button. I've tried going the javascript route with click triggers and such, and I've also tried making it into a form with a submit button but mobile safari likes neither. It seems like it requires that I touch the screen again before pressing enter to work. Any ideas would be greatly appreciated..
I am writing an iPhone application. In one of my views the user will have to enter Canadian zip codes which alternate letters and numbers (e.g. V0E 5N0). I would like to have the default keyboard showing up, but additionally, I want to allow the user to be able to enter numbers without having to switch keyboards back and forth by pressing the ".?123" key, which makes the process tedious for this type of entry. Will my app violate apple guidelines if I add into my view 10 buttons with the digits to show right above the keyboard?
There are plenty of Apps that already exist on the App store with such functionality, so I don't see why your App would get rejected specifically for having a view above the keyboard. It may still get declined because of other things, but not a custom keyboard view.
Nebulous Notes - Approved and on the App store:
iSSH also has a custom keyboard with toolbar on iphone and ipad and is on the App store.
Normally incase of a zip code entry , users are provided with a UINumberKeyPad and it makes it easy for them (But in your case it would not help you). In your case, if you wish to add another UIToolbar right on top of the inputView, I would say go for it, but it is not the best practice !
This will not violate the apple guidelines, and you can implement in your view with a UIToolbar as an inputAccessoryView. Make sure to remove the Toolbar from the superView during the keyboard event resignFirstResponder.
Question is, Whether a button can be placed below the software keyboard that comes in the iPhone when we tap to enter some text.
The soft keyboard comes from the very bottom of the screen , can it be made to move little up and a button can be placed ??
No, this is impossible with public APIs. Your only other option would be to use a completely custom input view.
I was wondering whether any of you may have an idea how to mimic the behavior of the native Mail app on the iPhone, when selecting email contacts in the To/CC lines.
If you note carefully, when touching that line the keyboard opens and you get a cursor, which is like the normal behavior of a UITextField. However, after keying a name and selecting it, the name is added inside a blue bubble. Still fine - one could create the bubble and move the text field. However, if you go back using the backspace key - the blue bubble becomes marked (darker blue), the cursor disappears, but the keyboard stays visible.
Any idea how to accomplish that?
Thanks!
Ariel
Check out the Three20 control library from the Facebook: https://github.com/facebook/three20
Either the TTMessageController, or the TTPickerTextField control are what you want. For using TTPickerTextField there's a good demo here: https://github.com/shayne/TTPickerTextFieldDemo
How can I display a button and/or activity indicator inside of a UITextField on the iPhone? I'm trying to reproduce Mobile Safari's location text field which contains either a reload button or a cancel (stop loading) button which is right-justified inside of the text field.
Similarly, when you click inside of the text field (not on the cancel/reload buttons) to edit the URL, a clear icon (x inside of a circle) is shown inside of the text field which will erase the contents of the text field.
How can I create this in my own apps? I cannot seem to do it via Interface Builder so I suspect it's being done in code.
There is a built in option that worked for me...check here:
Adding the "Clear" Button to an iPhone UITextField
Check out TTMessageController.