Hi ,
I am currently building an IOS app that has both arabic and english content interspersed. I went through the documentation and I havea few questions or clarifications to ask.
1. Is there a way to set Application's Layout direction to arabic. is it okay to set
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"ar", nil] forKey:@"AppleLanguages"]; [[NSUserDefaults standardUserDefaults] synchronize]; ? (In my application, a user can select around 2-9 languages )
2. I have two book items, if the book is arabic, I want that table cell to be from right to left , else i want it to be left to right. The only way I can think of right now is create different xibs, check if the language of my content is that of urdu/arabic, and pick that xib.
if([NSLocale characterDirectionForLanguage:@"ur"] == NSLocaleLanguageDirectionRightToLeft) {
NSLog(@"ur is Right to Left");
/
}
3. if I want to keep things simple and I was to just set label text direction, is there a way to autoturn the tableview cell? where image also moves accordingly?
thanks,
Deepiks