##Why iOS-Localize-Constrain ?
- No more xibs or storyboard for RTL and LTR.
- No more fake splash screen.
- No more write constrain to flip views.
- No more requests for close app.
- No more ask for change device language.
Now localization of views is simple , only fews of lines in viewDidLoad for each viewcontroller or create parent controller
##How to use it ?
#import "UIViewController+LocalizeConstrint.h"
#import "UIView+viewRecursion.h"
in viewDidLoad
//check if language is Arabic will loop for all view and flip constrain
if (GetAppLanguage() == UILanguageArabic) {
for (UIView *tempView in [self.view allSubViews]) {
[self changeViewRTL:tempView];
}
}
##Use it for Cell
#import "UIViewController+LocalizeConstrint.h"
#import "UIView+viewRecursion.h"
in awakeFromNib
//check if language is Arabic will loop for all view and flip constrain
- (void)awakeFromNib {
// Initialization code
if (GetAppLanguage() == UILanguageArabic) {
for (UIView *tempView in [self allSubViews]) {
[self changeViewRTL:tempView];
}
}
}
This image is old , Run demo to show more.
###Install using pod
pod 'iOS-Localize-Constrain' , '~> 0.0.8'
- Enhance Read.Me
Create swift Extension