I searched for tutorials for localization but all are for storyboard, my app is made up in xib. I also want to make the language change option inside my app using buttons, instead of changing it from Settings.
You can use XMLParser for this feature.
Ex:
let xmlParser: XMLParser = XMLParser()
xmlParser.delegate = self
xmlParser.parseXml(withLanguageIndex: baseIndex)
// In delegate XMLParserDelegate
func getValues(_ valueDict: [AnyHashable: Any]) {
stringsXMLDict = valueDict
}
Hope it will help you. Happy Coddling:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.