Xib Size Class iOS 7 issue

Originator:mp
Number:rdar://18737656 Date Originated:22.10.2014
Status:Duplicate of 18490866 (Open) Resolved:
Product:Developer Tools Product Version:Xcode 6.1(6A1052d), OS X 10.10 (14A389)
Classification: Reproducible:Always
 
Summary:
If you specify size classes in .xib files then changes that you make in Regular x Regular size class are not applied on iOS 7 iPad.

This problem is reproduced only with .xib files, not storyboards which work as stated in documentation:
"Size classes are backward compatible when:
- The app is built using Xcode version 6 or later;
- The deployment target of the app is earlier than iOS 8;
- The value of the height component is not compact."

I've attached a sample project to demonstrate the issue. There is a view in CustomView.xib file with two labels in it: first one with text "iPhone" and second one with text "iPad". "iPad" label and its constraints are disabled in Any x Any size class and enabled in Regular x Regular size class, "iPhone" label and its constraints are enabled in Any x Any size class and disabled in Regular x Regular size class. View from CustomView.xib is loaded and added to ViewController.

Steps to Reproduce:
1. Open project in attached archive.
2. Run it on any iPad with iOS 7.

Expected Results:
You should see label with "iPad" text.

Actual Results:
You will see label with "iPhone" text.

Version:
Xcode 6.1(6A1052d), OS X 10.10 (14A389)

Notes:
http://stackoverflow.com/questions/24172860/how-can-xcode-6-adaptive-uis-be-backwards-compatible-with-ios-7-and-ios-6

Configuration:


Attachments:
'SizeClassIOS7Bug.zip' was successfully uploaded.

Sample project: https://github.com/imaks/SizeClassIOS7Bug

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!