Xcode 6 Interface Builder doesn't allow to specify other attributes than layout constraints based on size class
| Originator: | matthias.tretter | ||
| Number: | rdar://17606157 | Date Originated: | 07/09/2014 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6 Beta 3 |
| Classification: | Reproducible: | Always |
Summary: Interface Builder in Xcode 6 allows it to enable/disable layout constraints on views based on the size class. That way it is possible to design different UIs for e.g. iPhone Portrait, iPhone Landscape and iPad in a single XIB. What's missing is the possibility to specify other attributes based on the size class, for example the font of a label or the contentMode of an imageView. We have to resort back to change this properties based on the size class in code, which defeats the purpose of Interface Builder. Steps to Reproduce: 1. Create a single XIB file using size classes 2. Add a label to the XIB and set the font to system font of size 15 2. Select any different size class than (wAny hAny), e.g. (wAny hCompact) 3. Change the font of the label to system font of size 18 4. switch back to the size class (wAny hAny) 5. The font size is changed to 18 Expected Results: The font size should stay at 15 in (wAny hAny) and should only be changed to 18 in (wAny hCompact) Actual Results: The font size is changed globally and can't be changed for a specific size class Version: Xcode 6 Beta 3 Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!