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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -