When using the backspace symbol in an app, I want to use the same one iOS (7) uses in its keyboards:
But instead, when using System Font in Xcode, it shows as a different design:
Is there another character that represents the one used by iOS, should I switch to a specific other font, is there a System Icon that should be used for this, or something else?
It's quite likely that the system keyboard uses an icon, not any specific Unicode character. Just like the shift keys and some other non-character keys.
Related
I'm trying to design an interface for a Japanese iOS app using Interface Builder.
Since I need to use Japanese text for the labels and other UI elements, a Japanese font must be used. In the case of iOS, the provided Japanese font is Hiragino Sans.
Using the system font for iOS interfaces simplifies a lot of stuff. You can use, for instance, TextStyles, which will handle all the Dynamic Type and other accessibility features such as Bold Text automatically for you. The code needed to fully support these features using a custom font, even if it's included in the system like Hiragino, is not trivial (but it can be done if there's no alternative).
Thankfully, UIKit is smart and automatically uses Hiragino Sans for Japanese characters on labels and other elements.
However, this automatic replacement apparently occurs on a per-character basis instead of on the whole UILabel / element.
You can notice this in the following screenshots. There are two labels, the first using the System Font, and the second one explicitly using Hiragino. The first screenshot is from Interface Builder, where San Francisco is used even for the Japanese characters. The second screenshot is from the simulator, which replaces the system font's Japanese characters with hiragino. You can notice these subtle changes especially in the following characters: ※, 角, ロ, and the latin text for Hiragino.
What I would like to know is whether setting the System font and forgetting about these details is how I'm supposed to design the interface, and the expected behavior for Japanese users, or whether I should try to use Hiragino on the whole UI element. (I'm leaning towards this second option here, especially because of how the ※ character is handled).
In this second case, is there something I'm missing where I can tell UIKit that all my UI elements should use Hiragino even for the non-Japanese characters? Is there a way to tell it to just use Hiragino when a system font is concerned? Or is setting Hiragino explicitly the only option here, with all the extra code using a custom font entails in order to support dynamic type and other accessibility features?
Thanks!
First off - I am a programmer, but I am not an iOS programmer.
Is there a method, besides "secureTextEntry=YES" to force an input field to use the system keyboard?
I'm investigating an uncomfortable behavior in 1Password (I do not work for AgileBits) where all third-party keyboards are disabled app-wide. They have an option to re-enable them, however it's buried in the advanced options and is in no way evident to a user. If you have removed the system keyboards in lieu of a third-party keyboard, you just get an app with no keyboards at all, or only emoji (if installed).
If there's a way to designate a field as requiring the system keyboard, without it being treated as a password, I haven't been able to find it in the iOS documentation… but their doc site isn't the easiest to navigate or search.
UITextField conforms to the UITextInputTraits protocol. This protocol has a keyboardType which you can set as one of the values from the UIKeyboardType enum (found here: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType ). You can change this keyboardType in addition to choosing to hide the characters (via secureTextEntry).
I want to use a special character on an iOS button. When I insert it from special characters collection located in Edit/Special Characters menu it looks like this:
But after I exit the edit mode or run the app on device the character turns into this:
It looks like it uses different font. Is there a way to fix it?
Open up the character viewer (you may need to enable this in the Settings / Language)
You can inspect the arrows in here, and then check the font variations.
Once you've located the font you want, apply that to the label. I suspect you want Lucida Grande Bold.
I have a UITableview with a UISearchBar, which contain Japanese words, and I want to test if it works to search Japanese words with Japanese keyboard. I can't find how to change the default keyboard on iPhone simulator.
Open on simulator Settings application ->General->International->Language. Select here your language and keyboard will have required letters.
I think what we really want to do is add an international keyboard, not change the language of the simulator.
Open Simulator
Find Settings. It's an app, not a menu item. Look for the icon with three gears.
Navigate to General > Keyboard > International Keyboards > Add New Keyboard
Now select the international keyboard(s) you'd like to add.
You can access the new keyboard(s) in your app by clicking the button that looks like a globe.
Once selected, that keyboard will remain the default until you change it again using the method from step 5.
Note that for Japanese (and Chinese) the keyboard layout isn't that important; what is needed is an input module converting the input to actual ideographic characters. Those are called "IME" (Input Method Editor)
A keyboard has just about a hundred keys, only half of them being alphabetic; but Japanese and Chinese need several thousands different characters. The role of IMEs are to convert phonetic of descriptive input into the wanted characters.
Japanese keyboard provides direct typing of phonetic japanese characters (katakana and hiragana); but all japanese IMEs acccept phonetic input either in native kana or in romanized (in latin letters).
I need to recreate custom keyboard with four levels: lowercase, uppercase, special characters and special characters when shift is pressed. I do not want to create plist file where will be placed all characters for each level. I am looking for the solution to get it using native framework.
What is the way to get characters set for each level?
Characters set should depend on language. Lets say German layout is different to UK layout.
Answer to the “Why?” question: For security reason as written in iOS Security guid at p.20 it is better to present custom keyboard to the users. As my text field have functionality hide/show password my UITextView can be in the mode not secure.
Once enabled, the extension will be used for any text field except the
passcode input and any secure text view.