Actually you must to get the application language, let's say you have Helper class and put static method to get the language of the application.
Helper.m
+(void)getApplicationLanguage{
//return application language
}
ViewController.m
-(IBAction)menuButtonClicked:(id)sender{
if ([[Helper getApplicationLanguage] isEqualToString:@"Arabic"]){
//slide from right
}else{
//slide from left
}
}
I did this on my applications,
Hope this works for you
UPDATE:
1.Change the segue identifier to "sw_right".
2. NOW in SWRevealViewController
in loadStoryboardControllers mehtod
comment first try catch like this
-// @try
-// {
-// [self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
-// }
-// @catch(NSException *exception) {}
in perform method add this code
NSString *identifier = self.identifier;
if (![identifier isEqualToString:SWSegueFrontIdentifier]) {
if ([[H getApplicationLanguage]isEqualToString:ARABIC_LANGUAGE]) {
identifier = @"sw_right";
}else{
identifier = @"sw_rear";
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…