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

前端 未结 4 2077
隐瞒了意图╮
隐瞒了意图╮ 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:29

    which way you're using for localization, I mean to ask is that native in which we just only maintain the folder structure or taken from Db.

    Anyways, If you're using native part, then look at following link which may assist you as I think we can replace the language option there:

    "http://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios" (Frankly speaking, I've no idea)

    But if you are using the db part, then in that case you just use some enum based tact and according to which just fetch your data, that approach is simple as I've already applied in so many apps.

    In any concern, just back to me. :)

提交回复
热议问题