Launch XIB Screen: Missing Width / Height Constraints (Xcode 6)

Using Xcode 6 , I am creating an iOS application that is designed for iOS8 .

I'm working on a file LaunchScreen.xibcreated in the menu File > New > File > iOS - User Interface - Launch Screen. "Use automatic layout" is enabled.

UIViewI placed inside the main XIB UIImageView. I would like to add width and height restrictions so that it UIImageViewis the same size as the container. However, Xcode does not allow me to do this: I can only work with spacing and alignment.

Here is what I see:

Launch screen.xib

What am I doing wrong? Why can't I see a menu like the following?

Size Constraints Menu

, , , , 0, , .

+4
4

EDIT:

Xcode 7 + .
, XIB, Storyboard UIView.


, XIB , , UIView .
, , (LaunchScreen.xib), , , , .

, , Storyboard XIB:

  • LaunchScreen.xib
  • LaunchScreen.storyboard (: File > New > File > iOS - User Interface - Storyboard)
  • , LaunchScreen.storyboard " "
  • LaunchScreen.storyboard, , " "
  • View Controller View , ,

Launch screen storyboard

UIView LaunchScreen.xib .
, , View Controller, .

Launch Screen XIB

+4

.xib, , . , , .

, , , , .

+2

? , ? iPhone 5, iPhone 6, iPod iPad. - , , 0. , .

, , , Pin, /Pin . / .

, !

0

A very simple solution is to add a clear UIView and bind it to the container, then you can access all the restrictions by associating them with the explicit "root" UIView that you added.

0
source

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


All Articles