XCode 7 - Misplaced views warning for view in Storyboard
问题 I have added a UIView on storyboard in which i set a constraints to top,left,bottom,right as shown below As you can see in the image, orange bordered line indicates that i misplaced the view. My UIView position is 0,20,320,150. I am not sure why xcode shows the warning eventhough i set a correct constraint. I am using Xcode 7 beta version. 回答1: Your constraints doesn't respect you frame. You have frame 0, 20, 320, 150 , but constraints show Trailing Space: -20 and Leading Space: -20 . Set