brigadir
brigadir

Reputation: 6942

Minimize xibs variety for localizations and iPhone 4/5

As I know from official sources, when we localize xib files we need to duplicate them and replace translated strings in Interface Builder.

And to support iPhone's 4" screen we need to make separate version of xib with height of 586 pixels (I had problems with autoresized top-level views without corresponding view controllers in common xib). In this case it's almost impossible to tune up interface in future updates.

How to minimize this variety (perfectly to single xib file)?

Upvotes: 0

Views: 77

Answers (1)

benjamin.ludwig
benjamin.ludwig

Reputation: 1585

  1. Don't use an extra xib for every language, set the labels etc. in code (and use a Localizable.strings file)

  2. Learn how to use layout constraints in your xib to support 3,5" and 4" displays

That's how I do it, and it works

Upvotes: 1

Related Questions