Ambiguous Layout - "Height is ambiguous for 'Image View'"

user

iOS7 has really been jerking me around.

This is a project imported from iOS6 that ran smoothly on all devices I tested on. Somehow the image view pictured gets set to something like 312x400 at runtime, ignoring the specification for height that I set in the storyboard.

I'm aware I'm missing some detail about autolayout but what gives? Why does the height I provided not matter at all, and why is this any different from Xcode4.x/ios6?

Snapshot from Xcode5

Andrew

The layout for the image view height property is ambiguous. When you use autolayout, it doesn't use the height of the image view in Interface Builder. Instead it uses the constraints set on the image view.

Create a height constraint on the image view and set it to what you want the height to be (in the case of a fixed height). If you want the height to scale, create constraints for the top and bottom of the image view to the image view's super view. For the screenshot you provided, you may want to set a constraint from the top of the image view to the top layout guide.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ambiguous Layout - "Height is ambiguous for 'Image View'"

From Dev

animating the constant in nslayoutconstraint - ambiguous layout

From Dev

XCode 5.0 ambiguous layout warnings

From Dev

Ignore ambiguous layout warning in IB

From Dev

iOS AutoLayout Ambiguous Layout in NavigationViewController

From Dev

Ambiguous layout warnings for UILabels in UITableViewCell

From Dev

Views are Horizontally and Vertically Ambiguous with complex layout

From Dev

ios7 empty autolayout layout already ambiguous

From Dev

Scroll views + Auto Layout in XIB: ambiguous scrollable content width

From Dev

How can a human understand the Xamarin.iOS Storyboard designer's ambiguous layout constraints section?

From Java

Deconstruction is ambiguous

From Dev

Is This Actually Ambiguous?

From Dev

Ambiguous use of "??"

From Dev

Ambiguous occurrence '=='

From Dev

Why is this ambiguous?

From Dev

Ambiguous in the namespace

From Dev

Converting an ambiguous CFG to a non-ambiguous CFG

From Dev

Why is this code ambiguous?

From Dev

Overload Resolution: How is this not ambiguous?

From Dev

Parsing ambiguous timestamps

From Dev

typedef may be undeclared or ambiguous

From Dev

Ambiguous template binary operators?

From Dev

Why is this method overloading ambiguous?

From Dev

MVC Routing ambiguous actions

From Java

Function call not ambiguous if {} is used

From Dev

Ambiguous Outer Joins?

From Dev

Ambiguous column name error

From Dev

SHGetKnownFolderPath: ambiguous symbol 'IServiceProvider'?

From Dev

Error: Ambiguous column name