iPhone, Keyboard with # and # that also have English charcters - iphone

I would like to set to following keyboard for iPhone like in the screen shot.
What important for me is having English characters, '#' and '#' simultaneously.

set keyboard type of textfield
textfield.keyboardType = UIKeyboardTypeTwitter;

The documentation tells all. UIKeyboardTypeTwitter.

Related

TextInputType.datetime is not showing '/' & ':' symbols

As in image symbol / & : is not present.
While everything else and code is fine and is also working on my another device.
Are you using the same keyboard on the other device (the one which is working)?
I can say based on my expirience that some keyboards do not responde to de input type and they just show a default or numeric keyboard.
For example on devices using SwiftKey, when keyboard is set to only numeric it doesn't change anything, just shows de default keyboard.

Implement autocapitalisation in Swift

I searched about autocapitalisation of a word in Swift on internet as well as on this site. I found the solutions but the solution is working for me. can you help me with this?
I have set capitalisation property of through text box property. screenshot is as follows:
I did the same thing through program also as follows, but nothing works for me:
txtabc.autocapitalizationType = UITextAutocapitalizationType.Words;
You have set your keyboard type as Name Phone Pad, which does not support auto-capitalization.
From UITextInputTraits Protocol Reference:
Some keyboard types do not support auto-capitalization. Specifically, this option is ignored if the value in the keyboardType property is set to UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, or UIKeyboardTypeNamePhonePad.
You could try with some other keyboard types and it should work properly.

Prevent Emoji Characters from Showing

I use a few special uniode chars in my app, but since iOS 5 these have been replaced with emoji characters. How can I force the unicode characters to be displayed and not the emoji characters? Thanks
This is an old question but it plagued me a lot recently until I found the answer.
Just add '\U0000FE0E' after the character that we want to prevent from becoming an emoji.
For example:
#"▶" // should be written as:
#"▶\U0000FE0E"
Using the escaped unicode works as well:
#"\u25B6" // should be written as:
#"\u25B6\U0000FE0E"
We need to use Unicode variants to prevent certain characters from becoming emoji.
Here is the article that solved my problem.
Just to add to BFerer's helpful answer, I found this works similarly in Swift:
"▶\u{0000FE0E}"
There's a few mentions of this issue on Apple's private devforums (which you have access to if you're a registered member of the iOS developer program).
It sounds like the potential solution would be to explicitly set the font for whatever you're trying to display.
Use "Hiragino Mincho ProN" for the font. It worked for me, but unfortunately I had to change the insets to make things look correct. I had to add an inset to the top to place things as they were before the iOS update.
All the credit goes to Kevin Ballard who answered my post in the following discussion -
Unicode characters being drawn differently in iOS5

How to check spelling entered in textview?

I have one UITextview in which user enter text. after that i take that text as a string and display it in another textview and want the words which are grammatically incorrect.
How to do that?
Use the UITextChecker class that's been available since ios 3.2: Apple Documentation
iOS system only provide spell checking while the user is inputting text. If the user choose to type in the wrong word or words, iOS cannot help. If you want to perform your own spell checking, you will have to include your own spell checking library.
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell. It can either be used as a library or as an independent spell checker.
Aspell Spell Checker on iPhone? was asked a few years ago here on SO. I am not sure if they ever got it working.
Use autocorrectionType property of UITextInputTraits protocol which is implemented by UITextView
#property(nonatomic) UITextAutocorrectionType autocorrectionType
Use it as below
To disable
myTxtview.autocorrectionType = UITextAutocorrectionTypeNo;
To enable
myTxtview.autocorrectionType = UITextAutocorrectionTypeYes;
In Apple Documentation
You can use Correction option under Text Input Traits in TextField Attributes using Interface Builder. It will take care of Valid English words.

password textfield on iPhone

I would like to use password styled textfield in iPhone (when typing, only: "*"'s will apper...).
The problem:
When i check the "secure" checkbox nothing happens - I still see the actual chars I'm typing....
What am I missing?
UITextField shows the last typed character as the original character (for around 1 sec), and the other characters will be shown as **. This is the default behavior of iOS