Skip to content

jenshandersson/Localizzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localizzle

Localization directly in Interface Builder

Playing around with method swizzling in Objective-C I created something useful, something I've always needed. Specifying localization keys directly in my XIB.

My first solution was creating new subclasses of UILabel, UITextView etc. But this would force me to update all XIBs and change classes for all views.

Using method swizzling I simply do the localization in -awakeFromNib.

Usage

Simply add Localizzle.h/m to your project. That's it!

You specify your localization key by adding a "User Defined Runtime Attribute" named localizingKey. See GIF

alt text

About

Localization directly in Interface Builder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published