objective c - I want change my own app language on button click in iOS -


if(btn.tag==1) {     [[nsuserdefaults standarduserdefaults] setobject:[nsarray arraywithobjects:@"en", nil] forkey:@"applelanguages"];     [[nsuserdefaults standarduserdefaults]synchronize]; }else{     [[nsuserdefaults standarduserdefaults] setobject:[nsarray arraywithobjects:@"ar", nil]  forkey:@"applelanguages"];     [[nsuserdefaults standarduserdefaults]synchronize]; } 

but it's not changing language first time first select language , restart app change language not change first time

thanks

i don't think can change language, once it's set. thats why right, after next time launch app.

if knew this, please explain question bit more.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -