How to put a UICollectionViewController in an InterfaceBuilder

Since I upgraded to Xcode 8, placing a UICollectionViewController next to a UIViewController results in a warning:

Misplaced Views
"Collection View:
 Expected: width=384, height=512
 Actual: width=375, height=667"

Playable:

  • Open a new project
  • Drag the UICollectionViewController next to the existing ViewController
  • Make segue from source ViewController to UICollectionViewController (Show)
  • And then the document describes the error.

Performing the same action with the UITableViewController does not result in warnings.

What am I missing? Help is much appreciated.

+4
source share

Source: https://habr.com/ru/post/1657551/


All Articles