I have added a Settings.bundle to my iOS application. One of my settings is a toggle switch with a long title. This title is getting truncated.
I have tried:


Title"but neither worked: \n and 

were displayed as part of the Title. Is it possible to have a line break/newline in my title? Thanks!
Yes, you can add a line return in a group title or footer:
Group
in your Settings.bundle fileFooterText
(not available in drop down list)

where a line return is neededNo, you cannot add a line return in labels attached to controls (text field, toggle switche, slider). If text is too long it's simply truncated with ellipsis… This is why you should have a very short label (for iPhone in portrait) then you can add a long description below the control using a group footer as explained above.
No, you have very little control over the Settings.bundle and a multiline title is not an option. Best thing to do would be to cut down the cell title and create a group title, or group footer.
I had voted @riobidon 's answer. However, I found out that 

won't work in localization.
If you need localization, here is what you should do.
In Root.plist
, use some words for place holding. For example, use "footer text" for a group footer.
Then in localization, do as below.
In en.lproj/Root.strings
, add
"footer text" = "the real footer you want.\nSome other descriptions";
You can use \n in the localization.
In other languages' localization, you can do the same. No one will see "footer text", as English is the default deployment language. A user either sees what the language that you have localized, or the English as failed safe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With