I have a UITextField where sip connection data can be entered. So for example:
2342452#somedomain.com
In general problem is that this looks like an email, but for 90% of cases user will enter numbers first.
So I've set email keyboard, but I would like to activate alternative keyboard mode, so digits would be visible when keyboard is shown (see picture):
Is it possible?
Related
I am using Xocde - 10.1 and added a UITextField in storyboard
Properties of the text field are shown on the following screen shot -
When I'm entering a password, it shows me a warning 'Strong password' and user interaction is being disabled for the text field.
Additional explanation - the text field works fine most of the time while I am entering the text inside it. But sometimes a text that should be hidden is being shown in the left side of the text field (like on screenshot above). If I reload the view, then I will be able to edit it. Otherwise - I won't be able to continue editing it.
This is the iOS 12 Password AutoFill behavior. I'd try removing the ContentType of Password on the field for simulator only if it's causing you problems there. On a device I suspect you'd get the expected behavior and be able to interact as outlined here.
You may also have to move the show/hide password image out of the text field if you want to support strong password autofill.
i''m implementing an OTP screen to enter a 6-digit passcode into 6 consecutive UITextFields, if the user enters (for ex.) 4 digits i would let them to clear their input but holding down the backspace key to clear text fields from the 4th one all the way to the first one, exactly like What's app does with their OTP screen, the problem is that how can I detect the long press gesture of the backspace button in the numeric keyboard ?
I'm trying to disable symbols(+, *, #) on phone pad either programmatically or from storyboard. I have been searching for useful resources online but wasn't successful.
Is there any better way to get this done?
EDIT
I'm using a UITextField for which I have set the keyboard type to Phone pad.
You are using the "Phone Pad" keyboard but you don't want the phone pad symbols. The solution is simple - don't use the "Phone Pad" keyboard. Use the "Number Pad" keyboard instead.
Keep in mind though that users can use external keyboards or they can paste text into the text field. So you can't rely on the keyboard to ensure that only certain characters are entered into the field.
You must also do proper validation by implementing the appropriate UITextFieldDelegate method textField:shouldChangeCharactersInRange:replacementString:.
I have a UITextView with dataDetectorTypes set to UIDataDetectorTypeAll (which should include UIDataDetectorTypeAddress), but no matter how I write an address in the text view it's never detected as a link.
Should the address be written in some kind of special format for it to work? Phone numbers, urls, emails and calendar events work perfectly.
I'm having some difficulty showing the virtual keyboard I want for the Blackberry Storm. I have an option to toggle the keyboard's visibility on a certain screen. Whenever the user types a number, it's handled by the screen, rather than any particular field (there are no textfields on this screen). This much works fine. I can show and hide the keyboard when the user chooses to.
My question is this: How do I make the keyboard that shows up the same as what would appear had the focus been on a BasicEditField with a numeric filter applied, without using a BasicEditField for the input?
I don't think BlackBerry has exposed any APIs to allow for programmatic control over the type of virtual keyboard that is shown. I seem to remember reading about it in the BB forums (although unfortunately I can't find it now).
One thing you could try doing is using a BasicEditField with a numeric field, but place it offscreen so that it isn't visible. When you want to capture numeric input from the user, put focus on that element. I haven't tried this, it's just a thought.