Arabic style writing implementation in textfield of IPhone/IPad - iphone

I am doing an application where I am trying to implement the arabic style of writing in textfield and textview here i have used a line:
[self.textfiled setBaseWritingDirection:UITextWritingDirectionRightToLeft];
but I am getting an warning: "method not found".
Please suggesst me some solution.

Have you tried entering Arabic text in the text field after setting the keyboard language to Arabic? I recall that it automatically sets the direction from right to left by detecting the character entered. You would not be required to call this method.

Related

Flutter - highlight the words that is typing

When input some language that cannot input a word directly by English keyboard, like Chinese, Japanese. They use romanization to help.
For example, when input a word 你好 which is hello In English. You should input nihao .
And the result is that the words that is inputing is highlighted to indicate that you are typing the words currently.
Two images at the end, shows the effect. First is in native iOS, the highlight style is change the background color to light blue,
Second is in Flutter, the style is underscore.
I want to know in flutter, how to custom the style.
Thank you !
native iOS flutter

Can I customize keyboard layout for apple tv?

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)

Create a custom UIKeyboard In-App

I have a UITextField that only requires specific character input, and I was wondering if it was possible to create a custom keyboard inside an iOS 8 app. Specifically the characters i want are a collection of logical symbols (which have unicode values) and some standard characters like parenthesis etc.
I would ideally like to override/overlay the current buttons on a UIKeyboard but still have the same kind of functionality such as being able to input characters where the cursor position is currently in the text field.
I know that you can create custom keyboards through an app extension but this is not what i want, i just want a keyboard to be used inside the app and no where else. If i am wrong, can i create an app extension keyboard to only be used within the app? that doesn't have to installed via Settings?
You can override the inputView property on your UITextField and return a view containing the keyboard. You must implement the keyboard functionality yourself, there is no way to access anything on the built in keyboard.

adding symbols in iphone keyboard

I've no idea to add special symbols to iphone keyboard like ® © ℠ ™ and many more.Does any one have any idea to add these symbols to the keyboard or any other alternative or adding these symbols in the textView ?
You can't add symbols to a keyboard. You can create a custom keyboard view and set it for the text field using the inputView property. Or you can add a toolbar to the keyboard using the text field's inputAccessoryView property.
Several of these symbols can already be typed directly if the user adds the Emoji keyboard in the Settings app.
You have to use emoji. Or make a custom keyboard.
Create custom keyboard and configure it on your iPhone
Hope this helps!

UITextField: Text Entered Programmatically but not Visible in the Text Field

I have a weird behaviour that has only shown up in the last week. I don't use IB, all the controls are created in code.
I have a text field with a keyboard active. The first time I load the text field and use the keyboard, everything works normally. The second time I use it, the typed text does not show in the text field. However, the text is in the text field programmatically. For example, I can use it to execute a search. When the keyboard closes, the text appears.
Some of my UITextFields have misaligned text. For example, I write "hello", and instead of displaying centered inside the field like normal, it displays shifted several pixels downward to the extent that the bottom of the text is cut off. It's almost as if another view is chopping the bottom off the text by obscuring it.
I use three20, but according to http://groups.google.com/group/three20/browse_thread/thread/d7c4bc1ee2f9590d#, Xcode is suspected of causing the problem. I seen the behavior on 2 diferent macs, one running with Snow Leopard (10.6) and the other with Leopard (10.5).
This is how the problem looks in Xcode:
It is not obvious, but there is text in that search field. Notice that the placeholder text is not show. However, if I hit Search, the code executes with the entered text.
This is how the app appears in the simulator:
I finally find the reason.
I call [textField becomeFirstResponder] in a function called from loadView. But I move it to viewDidAppear and everything work Ok...
I've seen that happen with text fields and affine transforms. If you rotate a text field using a transform, the text shows up in a seemingly random part of the superview. If you use a transform to move the text field to make room for the keyboard, you might be seperating the embedded text editor from the field itself. That would also explain why the text is in the code because the text attribute of the text field is not affected by the visual layout of the UI.