|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Jul 1, 2011, at 11:39, Ulf Dunkel wrote:
These problems are exactly why I am saying this. The link says essentially that for some layouts you can, and should, reserve enough space in the elements with text. This is why I say it depends on how complex your UI is. For more complex this is not feasible, or it doesn't look right, and you need to do something else.
I partly disagree. For some layout problems it is very well doable to adjust some layout in code, and it's really no pain and not much maintenance. In fact, it is even better for consistency, as IME often the explicitly localized layouts are very hard to keep consistent, especially if the localizers do the layout. Again, it depends on how complex your UI is.
For instance, I have defined a function that takes an array of buttons and smartly auto-sizes it in a perfect right-to-left row (trying to make them the same size, unless they become too big, but with a minimum size, etc), a common configuration. Just adding the IBOutlets and using this function in windowDidLoad is far less pain and leads to a more consistent layout for the buttons in all localizations than having to adjust the localized NIBs every time some changes are made. And it looks better than needing buttons that are large enough for all localizations (something that is also very hard to determine).
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
|>Re: IB localization question (From: Ulf Dunkel <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.