Can have single file for all my hardcoded strings in project. let's say if I need particular String so that I can pick that string from that file.Overall can I have one single file for all my hardcoded strings.If yes which one file I required And how can

Can I have single file for all my hardcoded strings in project. let's say if I need particular String so that I can pick that string from that file.Overall can I have one single file for all my hardcoded strings.If yes which one file I required And how can I use it to put Correct string at correct place

Replies

Please Relpy

I responded to the other thread you created for this question.

ps Creating multiple posts for the same question is not good form. You’re more likely to get a response if you post a well-formatted question to an appropriate topic area.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Sure. You can use NSUserDeafults for all your strings. Debugging your code may be harder.