How to force RTL semantics on iOS 8?

advertisements

I'm trying to force my app to be RTL on app start. Everything works fine on iOS 9, using:

if(version >= 9.0){
   [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight];
}

Now I'm testing it on iOS 8 and of course this method doesn't work.

Does anyone know the equivalent of the method that work for iOS 8?


If you are doing this for testing while in development then you can do this with an option in the Xcode run scheme...

This will override the RTL setting for the phone for the debug session.