uiview and uitableview in same uiviewcontroller showing different sizes on iphone, ipad

时间:2015-10-30 22:52:59

标签: ios uitableview uiview uiviewcontroller

enter image description hereI have a UIView and a UITableView under one UIViewController. Pl see image below. In top level view controller, I need the UIView (CheckoutNTotal) with few buttons and textfields. Below that I want the UITableView. This shows up fine in simulator or on actual device for iphone. for ipad, the CheckoutNTotal shows up much large on screen. i even said height constraint of 130 for UIView. What could be going on? Here are the warnings I get in xcode 7.1

Thank you

Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<_UILayoutSupportConstraint:0x7c2d2790 V:[_UILayoutGuide:0x7c50b360(64)]>", "<_UILayoutSupportConstraint:0x7c2d3ba0 V:|-(0)-[_UILayoutGuide:0x7c50b360] (Names: '|':UIView:0x7c50bd20 )>", "", "", "", "" )

Will attempt to recover by breaking constraint

enter image description here

0 个答案:

没有答案