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
Post a Comment