Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sometimes the back button get's flipped in a wrong way #3

Closed
deya-eldeen opened this issue Oct 5, 2017 · 3 comments
Closed

sometimes the back button get's flipped in a wrong way #3

deya-eldeen opened this issue Oct 5, 2017 · 3 comments

Comments

@deya-eldeen
Copy link
Contributor

Hello, see the back button get's flipped...

simulator screen shot oct 5 2017 10 35 51 am

@deya-eldeen
Copy link
Contributor Author

it looks like it's solved when I added the Arabic language as a language in the info from build settings.

@MoathOthman
Copy link
Owner

MoathOthman commented Oct 5, 2017

is it a custom back button or the default one?! , if its custom you need to check for the language when you create it and use the correct behavior .
e.g.

func setupBackButton() { self.navigationItem.backBarButtonItem = nil; var backButtonBackgroundImage = UIImage(named: "back")?.withAlignmentRectInsets(UIEdgeInsets(top: 0, left: -50, bottom: -5, right: -100)) if MOLHLanguage.isRTL() { backButtonBackgroundImage = backButtonBackgroundImage?.flippedImage() } self.navigationController?.navigationBar.backIndicatorImage = backButtonBackgroundImage self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = backButtonBackgroundImage self.navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: UIBarButtonItemStyle.plain, target: nil, action: nil) }

Please try that .

@MoathOthman
Copy link
Owner

Aha , good to hear that. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants