iOS storyboard localization for new UI

ios, localization, storyboard, xcode

Solution

In your storyboard, every single Object has an ID. In the 'Utilities' view, 'Identity Inspector' thumb, 'Document' section, there is a field 'Object ID'

I've never used this, but I guess that, if you have a label with ID `141-wB-KQD` and you want to set its text property, you have to put in your `Localizable.strings` :

"141-wB-KQD.text" = "the value you want";

Problem

I use Xcode 5 in a project. and the project need to localization. Xcode had help me generated `Localizable.strings` it looks like ``` /* Class = "IBUIButton"; normalTitle = "2013-10-1"; ObjectID = "p5u-h7-pfJ"; */ "p5u-h7-pfJ.normalTitle" = "2013-10-1"; /* Class = "IBUILabel"; text = "Label"; ObjectID = "pBS-eN-YUz"; */ "pBS-eN-YUz.text" = "Label"; /* Class = "IBUITextField"; placeholder = "Input Name Here"; ObjectID = "pE4-WG-fPp"; */ "pE4-WG-fPp.placeholder" = "Input Name Here"; /* Class = "IBUILabel"; text = "Detail"; ObjectID = "qSu-Mo-baT"; */ "qSu-Mo-baT.text" = "Detail"; ``` but how should I do if I want to add new UI in the storyboard. How can I add new key-value?

Original source