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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -