can you help me,how to insert a placeholder in settings.bundle? - ios

I have added settings.bundle to my app,i'm displaying a textfield with title using settings.bundle in settings,but I need insert/add a placeholder to textfield, is it possible in settings.bundle,if yes,please help me how?

No, currently settings.bundle does not allow you to add placeholder text for text field. The text field type displays a title (optional) and an editable text field. You can use this type for preferences that require the user to specify a custom string value.
There are some preference control types that are allowed.
Follow this: LINK

Related

How to Identify link attribute range on moving cursor

In UITextView some strings are linkAttributed, How to find the range of all only link attributed string. while editing textview? And Also If user click on back(cross) for removing then can We remove complete link text.
Enable Detection->Links options, the URL and also email will be detected and clickable

How do you add uneditable text in an iOS app

I now a label can create static text, but I have a few paragraphs that are neatly formatted that need to go to my app. How can I do this without using a label?
You can use a UITextView and set the editable property to NO

Xcode - how to use localized string from attribute inspector

in the attribute inspector i have a placeholder (a.k.a a hint) for a textfield. The hint is called USERNAME. I'd like to localize this. I have already added the necessary strings into a localizable.strings file. My question is i would rather reference this string from the inspector itself. I wish i could do something like localstrings(#"username") right inside the placeholder field itself. I wish i could localize the placeholder string directly from interface builder is what i'm asking for. I've attached an image showing what i'd like to accomplish.
Localize your storyboard(Main.storyboard), Xcode makes strings file(Main.storyboard) for you, so edit it like...
"XXXXXXX.placeholder" = "NOMBRE";

Editable, Typable but not removal in pretyped text - Text Field

I want to put some text and display it in a text field. I want the user not to be able to remove this text but only can add some more text to it. Can I do this?
I want to display "http://" prefix in the textfield and the user should be only able to add some more text to this.
this is not possible. I would recomment doing one of the following:
Write the http:// in front of the Textfield
http:// [Textfield]
do some form-validation: does the input submited contain http:// (at the beginning) ? if not add it

Remove highlighting box from edit field

I am using edit field to enter some text. When I click on edit field, one Highlighting box is showing as in image. I want to hide that box. Please catch the problem using below image:
How to remove this focused box in edit field??
As it's Edit Field, its default nature is to highlight text for editing. If you are going to enter values in the field during application runtime means you have to bare this. If you are going to enter values programatically means use Rich Text Field or your
editfield.setEditable(false);

Resources