Title in Settings bundle not showing in the Settings - ios

I've pasted a screen shot. The text Area is visible but the title is not showing up in the settings page. I couldn't figure it out.

I found that I needed four fields active and filled out for it to show up properly.
Type: Title
Title: Whatever
Identifier: what_ever
Default Value: [okay to leave blank]

You just need to add a new row, under your Default Value with the key "Identifier". It should works ;)
UPDATE 1:
I've tested with a swift project, and all works fine:
Next, my code in the AppDelegate:
Finally, the result in the simulator:

Related

Sign in with Apple button title always displays "SIGN_IN_WITH_APPLE"

I have an app which is localised for two languages: English and Lithuanian. I'm implementing Sign in with Apple functionality and everything is working great except for the button title, which I'm trying to localise.
I'm creating the button as recommended in documentation: let asiButton = ASAuthorizationAppleIDButton(type: .signIn, style: .black) I've entered "SIGN_IN_WITH_APPLE" in Localizable.strings for both languages. When the language is set to Lithuanian, the button displays a correct string, but when I change the language to English, the button always displays SIGN_IN_WITH_APPLE (as in the screenshot).
Screenshot
For some reason it seems to ignore the value I've put into Localizable.strings for an English version (although all other strings work as expected), as I can remove it altogether and have the same outcome.
I've tried getting and setting the label to the button directly through code using asiButton.accessibilityLabel, but this returns nil and setting it results in the same outcome, a button with SIGN_IN_WITH_APPLE title.
Any ideas would be appreciated!
Do not use Localizable.strings for this. ASAuthorizationAppleIDButton is already automatically localized.
I've faced same issue.
I added "SIGN_IN_WITH_APPLE" = "Sign in with Apple"; pair to my Localizable.strings that chained to English file and all working fine.
It's kinda an answer, but I suppose this message should be in comments. Sorry, but right now I'm not allowed make comment cause of low reputation count.. )

Custom class not automatically showing up - Swift 3 iOS 10.2 Xcode 8

So I have my app set up with two view controllers. The first one is my initiation screen, where the app starts, and the second is one the user can navigate to. I added the second one later on in my development, but when I went to the right column under the identity inspector, my new Cocoa Touch Class file is not populated for me to select. Now if you ask me to just type it in, I've tried that, it does not seem to connect. I've tested it by printing a simple line in the viewDidLoad() of the new second class when it is loaded in the simulator, but nothing is printed. Any help would be greatly appreciated!! Thanks!
EDIT
Easy fix is:
Select the activity indicator on storyboard and go to identity inspector and copy the object id. as image: ObjectID_ActivityIndicator
Right click the storyboard file which has the view controller you are working at.
Open as > Source Code
Press command + F to find and look for the id you copied previously
Paste this: customClass="yourclassname" customModule="moduleNAme" customModuleProvider="target"(don't change this target word, you can choose desired module from identity inspector if any).
Command + S to save it and again right click on storyboard file > openAs> Interface builder
Now select activity indicator again and go to identity inspector. You will now see it there. You can also change it as per requirement.
Enjoy. I faced this problem today and found no help online. My class and module field were greyed out. Tried this fix and it worked.
Note: Make sure your custom class is accessible and is in app directory i.e it's not highlighted in red color but gives a normal look.
I have seen a problem like this where the solution was to change the "Module" to a specific value, close the storyboard, reopen it and delete the "Module" setting (assuming it was originally blank or restore it to its original value). This happened in project with many targets and their names may have changed.

My two word app name is being displayed as one word

I have my app name set to 'Random Game' but for some reason on the launch screen it is displaying as 'RandomGame'. I know it's kind of small but it's really bugging me. This is my Xcode project:
And this is how it's coming out:
That looks like two words to me, just the text has been squashed a bit because your name is long. See what it looks like if you change it to "Rand Game".
Check you Info.plist. Be sure that your bundle display name is set to "Random Game".
Open launchscreen.storyboard and make the changes.

How can i right align a Text Field in the settings bundle of an app , iOS?

I have in my settings bundle of my application two text fields , where the user can give latitude and longitude values.
The bundle settings look like this :
As you see the values (43.46 and -3.81) are left aligned.
Is there a way to right align them so it looks better?
It seems the only answer to this question is to add spaces on the title of the text field , till your values move to the left side.
Is not very delicate , but looks better than this.
This worked for me in in-app settings view. I have not tried it with settings.
Open property list file as a source and paste the following to the for each entry you want right-aligned:
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentCenter</string>
Or do the same through the plist editor.
You can do that in different way. You have to add a Title preference item. and add titles and values inside that.
I have a screenshot here,
And the resulting settings screen will look like this,

Set tooltip for an editor

I have the following code snippet for creating an input field for entering colors:
DataSourceTextField colorField =
new DataSourceTextField(ZoneDto.ATTR_COLOR, "*localized name*", 7, true);
colorField.setEditorType(new ColorPickerItem());
colorField.setPrompt("*localized instructions*");
This works quite well, since the input field has the localized instructions in its tooltip, but the small square that opens the color picker window has the original english tooltip ("Click to select a new color").
How could I change this message to a localized one?
Is this even possible to accomplish? I read that setEditorType only sets a template, from which instances are generated whenever needed. This means it's not going to work if I add setPrompt("localized instructions") to the ColorPickerItem given to the setEditorType().
Thanks in advance!
If i get you right, why not fill a variable 'localizedStringForColorPicker' with the current selected localization upon startup. And change it, when another localization is selected?

Resources