mardi 19 juillet 2016

Flip interface using setSemanticContentAttribute

I am using setSemanticContentAttribute to flip direction of navigation controller, but it flip all of my view include my UITableViewCells. I wanna to flip only UINavigationController, but all of my view remain? (I want to open from right to left, isted of left to right in navigation)

Here is my code for UInavigationControll:

[[UIView appearanceWhenContainedIn:[UINavigationController class], nil] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];

In addition, I try to flip back view by using this after that:

[[UIView appearanceWhenContainedIn:[UINavigationController class], nil] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeUnspecified];

But the second line doesnt changed any of views.

Is there anyway I can do this ?

Aucun commentaire:

Enregistrer un commentaire