I know we can pass parameters to the title but I am wondering if I can set the full title programmatically when donating the intent. Mostly because I need to handle some grammar rules for English and French.
Thanks
Related
I want to create an app which helps me to improve on my English. I have a couple of English sentences stored via Realm on the device which will be displayed in the app. I have to enter the correct verb form including the tense. I used Apples Natural Language Module to filter out the verb forms and replace it with underscores.
The sentences are displayed in a UILabel, but instead of underscores, I want to have a UITextfield where the underscores are (so inside the label), so that I can write directly in the sentence instead of having a UITextfield below the sentence. How can I achieve this?
I have three editable text fields in my app. When user enters text in the first text field, the English keyboard should show up, in the second - Spanish, in third - Chinese, etc. Everything else in the app should stay in English.
If possible, the languages could be selected dynamically by the user from the list of available locales (I don't need help with selecting the language):
https://docs.flutter.io/flutter/flutter_localizations/GlobalMaterialLocalizations-class.html
The closest that I found to what I want is described here: https://medium.com/saugo360/managing-locale-in-flutter-7693a9d4d6ac
but I wonder if there is a way to make it less intrusive: like making it a property of the TextEditingController
This shouldn't be done by the application.
Keyboards are installed by user and user knows how to switch between them.
I am wondering if there is a way to make the Form Title editable for user input? Or can I only use a text field?
Thanks for your help.
I assume this is org.eclipse.ui.forms that you are asking about.
The title area of the form heading just uses a Label control, so, no, it can't be editable.
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)
I am trying to accomplish the following:
Read and Parse the text in a UITextField. Identify all the numbers in the UITextField and convert these into hyperlinks.
When these hyperlinks are clicked perform a custom action, which is to display a UIActionSheet and based on the selection assign the number (in the hyperlink) to another UITextField instance
For example if the UITextField has the text - "This is a sample test with number 123445 and more numbers 44555, 66777".
I should be able to parse the above text, detect all three numbers and add hyperlinks to them.
For the first part (parsing) I found out that there is a NSRegularExpression class that can be used to detect patterns in a text. But I could not find a way of adding hyperlinks to the matched numbers. I tried looking at Three20 documentation and could not figure out a way. Even tried the answer in this link - Just how to you use TTStyledTextLabel? but it only auto detects URLs and adds hyperlinks to them, I want to add hyperlinks to any custom text.
Can someone please help me with this. Please do not ask me to use WebView. I would really appreciate some code snippets. Thanks in advance. I am using xCode4.
If you don't need the text to be user-editable directly, you may use my OHAttributedLabel class to achieve this. (here on github)
This allows you to display any NSAttributedString and can also autodetect links, phone numbers and everything Apple's NSDataDetector class is able to detect. You can also add custom links to your label on any part of the text.
See the sample project included in my github repository for more details.
It is very customizable, both for link colors, underline style, action to perform when a link is tapped, which link types it should autodetect, and you can add any custom links and style you need on the text.