-
Notifications
You must be signed in to change notification settings - Fork 987
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
Change SideBarMenu from left to right #676
Comments
I wrote this for another issue: |
@iDevelopper have you changed anything in storyboard in above demo? I am using objective c and I want to implement for Arabic. So could you help to implement RTL in revealviewcontroller? My source code
|
@ozamihir1990 , no change in storyboard, only the code in FrontViewController. What's your problem? |
@iDevelopper segue is not working which I implement in my RearTableViewController. It works in English but when I change to Arabic If I click on any cell it's not working. |
First when you are RTL the btnMenu action should be rightRevealToggle and not revealToggle. And in the sample I added a push segue which works well when RTL or LTR: Could you let me know if this sample works for you? |
@iDevelopper sorry for late replay, |
As I said, in the above sample I added a segue and when item 0 or item 1 are clicked the front view is pushed. It is not the case for you? |
I think there is some miscommunication, in your example when I pressed on item 0 or item 1 nothing happens because you didn't add any segue in item 0 or item 1, but I added my segue in cell pressed in storyboard(it works in English but when I change to Arabic it doesn't work. ) |
Perhaps you did not get the last example, however I added two segues now. One for item 0 and one for item 1. Video: |
I am using a single storyboard, for other languages, I am using Main.strings. |
No only in the main storyboard, it should be sufficient as the project is localised. Why the app does not crash here? |
However I removed the others storyboard now. I have one storyboard (base) and three .strings. |
I think it's your storyboard issue. you didn't add 2 cell in Arabic.
Are you checking in same code which you provided? |
There are two cells for each language, only one storyboard... No issues here. I am using Xcode 10.0 beta 3. |
I am using Xcode 9.3, So I am not sure but it's using Arabic storyboard in Xcode 9 |
Please see the uploaded video in xcode 9.3 |
Hello, @iDevelopper any suggestions for my issue? |
Hi @ozamihir1990 , I will test with Xcode 9.4.1 now. |
Works like a charme. Xcode 9.4.1 - Simulator iPhone 6s RTL language arabic. What can I do? |
ok, @iDevelopper let me check maybe I did some minor mistake in the code. |
But is my sample works without change anything in it? |
@iDevelopper Sorry for late replay, I got the solution. Actually, I was using common array for cell identifier,display cell label and image name. and I used |
I want to change "SidebarMenu" from left to right when Arabic language is selected in my app. In my app when I select Arabic language then barbutton(menuButton) is move to right side. So, I want to open "SideBarMenu" from right side. In english language it should open from left side as usual.
Here is the code in ViewController:
I have tried to set
rightViewController
but its not working.revealController?.setRight(rearController, animated: true)
The text was updated successfully, but these errors were encountered: