Change iphone app language with buttons and without restart of the app

前端 未结 4 2068
隐瞒了意图╮
隐瞒了意图╮ 2021-01-19 05:48

I want to change the language of my app. At the moment I am doing it at the following way. I have two buttons which are change the languages in NSUserDefaults. But before t

4条回答
  •  耶瑟儿~
    2021-01-19 06:41

    If your data is in UITableView then you could use [tableView reloadData];. You can even set the app languages in appDelegate, defined in Constants, keys, then on the IBAction call those keys then be stored in NSUserDefaults.

提交回复
热议问题