Latest 0.0.9
Homepage https://github.com/dimohamdy/iOS-Localize-Constrain
License MIT
Platforms ios
Authors

Localize-Constrain-On-The-Fly

Join the chat at https://gitter.im/dimohamdy/iOS-Localize-Constrain

NSStringMask

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.

Localize

Install using pod

pod 'iOS-Localize-Constrain'  , '~> 0.0.8'

Todo List

  1. Enhance Read.Me
  2. Create swift Extension

Latest podspec

{
    "name": "iOS-Localize-Constrain",
    "version": "0.0.9",
    "summary": "localize constrain on the fly",
    "description": "A longer description of iOS-Localize-Constrain in Markdown format.nn* Think: Why did you write this? What is the focus? What does it do?n* CocoaPods will be using this to generate tags, and improve search results.n* Try to keep it short, snappy and to the point.n* Finally, don't worry about the indent, CocoaPods strips it!",
    "homepage": "https://github.com/dimohamdy/iOS-Localize-Constrain",
    "license": {
        "type": "MIT",
        "file": "license"
    },
    "authors": {
        "Ahmed Hamdy": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/dimohamdy/iOS-Localize-Constrain.git",
        "tag": "0.0.9"
    },
    "source_files": "Classes/*.{m,h}"
}

Pin It on Pinterest

Share This