ios - How to know the previous language used by device -


How can you know the previous language used by the device?

Depending on whether the previous and present language is not so, I will update the DB and Vice President

Actually if the past and present are not the same, then the table The content must be deleted and updated on the basis of the current language. NSUserDefaults * defs = [NSUserDefaults StandardUserDefaults]; NSERE * languages ​​= [ObjectForchy: defragmented] "Apple language"]; NSString * FavoriteLeg = [languagesObjectIndexX: 0];

Now I suggest that store the current database in your database or NSUser default and check for the current language regularly and match your database. If you have received the change, it means that the existing preferredLang is the current language and the previous database that you can get from your database or NSUser default and whatever you want.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -